Image via Wikipedia
The libraries and header files that come with the compiler provide functionality and sites like cppreference.com have the help needed for using them.
Compiler Errors Messages Have Errors
Compiler error messages sound like a small, insignificant detail, but they can be pretty daunting to a newbie. The user needs to realize just how exact the syntax (strictness of the format of a program) must be; new programmers are often inundated with error complaints that come from the compiler and the complaints are not written for newbies, and can be hard to understand.
Take the error messages one at a time – frequently, the error confuses the program so much that it may send out a bunch of error messages for a single error. Begin with the first one, and go thru them systematically.
Be aware that the message’s line-number may be wrong, but it can be depended upon for the last possible line the error may be in.
If the error doesn’t exist in that line, it is certain to be before that point and not after, so it can still be found easily.
Just take heart and be patient. It’ll all come into play and one day the compiler errors will be understood and decipherable.
