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

Now, for printing problem, the program does not compile when I delete the limes that are shown in IDE serial monitor after entering 1 or 2

You need to fix the problem caused by using Windows XP