Welcome to the forums!
When you get the console message telling you that there are compiler errors, it’s actually telling you exactly where the problem is. Expand the console (if you had it minimized) and look through all the message text. At some point you’ll see something like this:
That means the problem is in the file YourScript.cs, at or around line 14. Sometimes it’s on the previous line because it wasn’t terminated correctly. The error message there will tell you what’s wrong and steer you towards how to fix it.
In any case, you have to provide that kind of information here for us to be able to actually help you. It’s also important to share the code for the file mentioned (all of it) and to do so using code tags so we don’t pass out from trying to read a mess of unreadable text.