ASAP need help

how do i fix this red x error in my robot c program
Error:Task ‘autonomous’ is not defined at global scope level

Please refer to the answer in this thread.

I also suggest that you work through some of the exercises in the “Vex cortex video trainer” if you have just started to learn ROBOTC.