Whose Error Is It?

C or C++ printed this

error: expected ';' before '}' token
What it meansThe compiler reached a closing brace while still expecting a semicolon to end the previous statement or declaration.
The first thing to checkLook at the line just before the brace for a missing semicolon; also check that a class or struct definition ends with }; as C++ requires.

More from C or C++

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar