need help with error: expected unqualified-id before '{' token

never mind, i figure it out myself

Normally a { starts a set of code, such as:
if (1==1) { do some coding within these brackets
Or a function, etc.

I don’t know what that code is, but if you are new, I suggest you start running some of the examples, and get a feel for the flow of the language, before you jump into such deep waters.

Familiarize yourself with this How to post code properly and then fix up your post so that your code displays properly.