The compiler you're using is more than a lot outdated. You might want to grab something like Dev-C++ from bloodshed.net. It's a current version of the GCC/G++ compiler, and it comes with a nice IDE as well.