I've had this problem too a few times. What works best is to just delete your entire C/C++ complier off your computer and get another one. Getting those errors is usually one of two things
1. a syntax error you have overlooked (which happens really easy if you're not careful)
2. your complier is pooched

Either way you'll have to take a good look at your code and if it looks fine then get a new compiler. I use Bloodshed Dev C++ 4.0 or something. You can get it off www.download.com.