Either more than one statement is on a line and the statements are not separated by semicolons, or a for statement is on a line without semicolons separating the initialization, test, and increment in the header.
Semicolons are used to terminate statements. Although several statements may be on a single line, each statement must be delimited from the next with a semicolon.
Semicolons are also used to separate the initialization, test, and increment expressions in the header of a for loop.
To correct this error
-
Mark the end of each statement with a semicolon.
-
Make sure function calls use parentheses properly.
-
Make sure there are semicolons inside the header of a for loop.
-
Make sure there is an = in an assignment.