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.