exit status 1 expected unqualified-id before 'else'

const int ML[2] = {3, 4};//priekšējais labais motors
const int MK[2] = {9, 10};//aizmukugrējais kreisais motors

int atrums1 = 80;
int atrums2 = 20;
int atrums4 = 150;
int atrums3 = 120;
int amax = 225;

int sensorR;
int sensorL;
int sensorB;

void setup() {
Serial.begin(9600);
for (int i = 0; i < 2; i++)
{
pinMode(MK*, OUTPUT);*
_ pinMode(ML*, OUTPUT);_
_
}_
_
}_
void loop() {
_
sensorR = analogRead(A1);_
_
sensorL = analogRead(A2);_
_
sensorB = analogRead(A4);_
_
if (sensorL < 800)// kreisais linijsensors?_
_
{_
_
digitalWrite(ML[0], 0); //priekšējais labais*_
* digitalWrite(ML[1], atrums2);*
* digitalWrite(MK[0], 0);*
* digitalWrite(MK[1], atrums1); //labais aizmugurejais uz priekshu*
* }*
* else if (sensorR < 800) //Labais*
* {*
* digitalWrite(ML[0], 0); //priekšējais labais*
* digitalWrite(ML[1], atrums1);*
* digitalWrite(MK[0], atrums1);*
* digitalWrite(MK[1], 0); //labais aizmugurejais uz priekshu*
* }*
* else if (sensorB < 800)// aizmugure*
* {*
* digitalWrite(ML[0], atrumsmax); //priekšējais labais*
* digitalWrite(ML[1], 0);*
* digitalWrite(MK[0], 0);*
* digitalWrite(MK[1], atrumsmax); //labais aizmugurejais uz priekshu*
* }*
* else if (sensorR < 800 && sensorL < 800) //priekšējie abi*
* {*
* digitalWrite(ML[0], atrumsmax); //priekšējais labais*
* digitalWrite(ML[1], 0);*
* digitalWrite(MK[0], atrums2);*
* digitalWrite(MK[1], 0);//labais aizmugurejais uzt priekshu*
* }*
* else {*
* digitalWrite(ML[0], atrumsmax); //priekšējais labais*
* digitalWrite(ML[1], 0);*
* digitalWrite(MK[0], 0);*
* digitalWrite(MK[1], atrumsmax); //labais aizmugurejais uz priekshu*
* }*
}
Can you please help with this code?

You need to remove the backslash from this line:

else if (sensorR < 800) //Labais\

That causes the bracket on the next line to become part of the comment.

You also will have another error caused by not declaring atrumsmax I think you meant to use that instead of amax.

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.