I an using Visual Studio 2005. I am not sure about a compiler. I mean I shouldnt have to compile this just to see it, its just a text dos console. Basically just like the simple Hello world tutorial. Which does run by the way.
As for second poster. Can you be more specific what syntax error do you see? VS doesn't seem to say there are any. And the code is taken straight from a college text book word for word...