compiler errors are given because there is some kind of syntax error.
Of course, you could search this forum, and find
this or
this, which cover the same question.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors