the c++ code is having errors

hi! I am getting errors on eclipse under the robot.cpp… the following strings are having errors
-class Robot: public Robot
-while (IsOperatorControl() && IsEnabled())
-class Robot: public SampleRobot
I tried creating a new project and paste code into new project… but I get all the same errors. am I the only one?

thanks for your time!

Have you rebuilt your project yet? Right click your project --> index --> rebuild.

Try rebuilding again, like the person above suggested. If that doesn’t work, post your code here so we can have a look.