how come I get error messages everytime I verify the program even if it is one of the example programs?

Which errors?

Post an example that you try to compile and post the error messages. Use code tags when posting code and error messages; see the sticky 'how to use this forum' to see how to use code tags.