I downloaded the pdf file from http://www.cplusplus.com/doc/tutorial/ Im just doing everything the book is telling me. And I did change that but still get the error.
This is because you are using a C++ compiler a decade old (or more), and as such it does not understand C++ - only some pre-standard approximation of very old C++.
You can get a new, real C++ compiler for free. Please do.