Breaking a program
Syntax errors are usually pointed out by the compiler when you try to run it. The message displayed can vary from one compiler to another. The best way to learn about the types of error message that can occur is to take a working program and "break it", create an error. Then run it to see what error message you get.