**Error**:Executable statements not valid in 'main' declaration block

I am getting the error of Error:Executable statements not valid in ‘main’ declaration block
I am using Robot C. my code is
#pragma config(Motor, port1, Arm, tmotorVex393_HBridge, openLoop, reversed)
#pragma config(Motor, port2, Left, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, Right, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, Claw, tmotorVex393_MC29, openLoop)
//!!Code automatically generated by ‘ROBOTC’ configuration wizard !!//
while(true)
{
motor[Left] = vexRT[Ch3] / 2;
motor[Right] = vexRT[Ch2] / 2;
motor[Arm] = vexRT[Ch5Xmtr2] / 2;
motor[Claw] = vexRT[Ch6Xmtr2] / 2;
}
The error shows up on the last line 12

You need a task or a function to put the code in.
Try:
task main(){
while(true)
{
motor[Left] = vexRT[Ch3] / 2;
motor[Right] = vexRT[Ch2] / 2;
motor[Arm] = vexRT[Ch5Xmtr2] / 2;
motor[Claw] = vexRT[Ch6Xmtr2] / 2;
}
}