Step 5 of 5
Comments and reading errors
Comments are notes for humans. The compiler ignores them.
// a comment runs to the end of the line
/* this kind can span
several lines */
When the code is wrong, the compiler tells you the line number and what it expected. The most common beginner error is a missing semicolon: error: expected ';'.
Your turn: this program has two mistakes. Press Check first to see what the compiler says, then fix both so it prints Fixed it on one line.