Weird errors?

I don’t understand why it wants a semicolon after a set of curly brackets here?

In C++ class definitions need a semicolon on the end, unlike other languages like Java.