If thats all you have in your robot, its not using the competition template. The competition template does not have a main task. Open up the sample programs or from File, New and find the competition template. Follow the instructions in that file.
Thank you so much for all your help! I got the competition template and got everything working, but the robot is not doing anything. I pity the code into the template and am using a different line of code that I tested and it works. What can I do to get the robot to run?