How to modify the below code that the motor works (Turns on) for tamount of time

the problem of compiling is over

What did you do to fix it or did it just stop happening sometimes ?