servo code help

there is one for left side and right motor
mright.write(valrpin);
mleft.write(valgpin);

just don't know why i get the error

There is one what for each motor?

Have you read any of the responses? If there was something you did not understand, say so.

When I add the missing ;, put the { on new lines where they belong (in my opinion), and correct the map calls, I only get this error:

Binary sketch size: 2874 bytes (of a 30720 byte maximum)