error: expected `;' before ')' token

Hi guys!
I am having some code problem with my line following robot.
I’m getting the “error: expected `;’ before ‘)’ token
These are the troublesome lines:

 midPointleft = max(0, (int) minLightLeft + maxLightLeft)/2 - midAdjustleft);
  midPointright = max(0, (int) minLightRight + maxLightRight)/2 - midAdjustright);

I figure it is something really simple, but I have no idea what it is! :0

Here is the rest of the code:

//Project line following robot
//setup servos
#include <Servo.h>
Servo LeftServo;
Servo RightServo;

//setting up the LED's
int leftLED = 8;
int rightLED = 9;

//setting up the sensors and other sensor values
//light sensor left
int lightSensorleft = A5;
int lightReadingleft;//variable that represents the current light under the left light sensor
int midPointleft; // light at the edge of the line for left light sensor
int midAdjustleft;
//light sensor right
int lightSensorright = A4;
int lightReadingright;
int midPointright;
int midAdjustright;

/*
Functions for driving left servo 0-100 in percent power
0=100% foward, 90 = stop, 180=100% backward
*/
void leftForward(int power)
{
  int value = map(power, 0, 100, 89, 0);
  LeftServo.write(value);
}

void leftBackward(int power)
{
  int value = map(power, 0, 100, 89, 180);
  LeftServo.write(value);
}

void leftStop()
{
  LeftServo.write(89); 
}

/*
Functions for driving right servo 0-100 in percent power
0=100% foward, 90 = stop, 180=100% backward
*/
void rightForward(int power)
{
  int value = map(power, 0, 100, 89, 180);
  RightServo.write(value);
}

void rightBackward(int power)
{
  int value = map(power, 0, 100, 89, 0);
  RightServo.write(value);
}

void rightStop()
{
  RightServo.write(89); 
}

void setup()
{
  //setup servos
  RightServo.attach(0);
  LeftServo.attach(1);
  
  //setup LEDs
  pinMode(leftLED, OUTPUT);
  pinMode(rightLED, OUTPUT);
  
  //turn on left and right LED and wait 2 seconds
  digitalWrite(leftLED, HIGH);
  digitalWrite(rightLED, HIGH);
  delay(2000);
  
  //create a min and max value for light and set them
  int minLightLeft = analogRead(lightSensorleft);
  int maxLightLeft = analogRead(lightSensorleft);
  int minLightRight = analogRead(lightSensorright);
  int maxLightRight = analogRead(lightSensorright);

  //do a very slow left turn and set the midPoint value for the line
  rightForward(10); //right motor spins forward at 10% power
  leftStop();  //left motor stops
  
  //loop to set minimum and maximum lights
  for(int i=0; i<100; i++)
  {
      //loop to set minimum and maximum lights for left Light Sensor
    lightReadingleft = analogRead(lightSensorleft);//read the current light under the left photoresistor.
    
    //set the minimum light (darkest point on the line)
    if(lightReadingleft < minLightLeft)
    {
      minLightLeft = lightReadingleft;
    }
    
    if(lightReadingleft < maxLightLeft)
    {
      maxLightLeft = lightReadingleft;
    }
    
    //loop to set minimum and maximum lights for right Light Sensor
    lightReadingright = analogRead(lightSensorright);//read the current light under the left photoresistor.
    
    //set the minimum light (darkest point on the line)
    if(lightReadingright < minLightRight)
    {
      minLightRight = lightReadingright;
    }
    
    if(lightReadingright < maxLightRight)
    {
      maxLightRight = lightReadingright;
    }
    delay(20);
  }
  
  rightStop();  //stop the right servo
  
  
  //set the midpoint for left PhotoResistor (value for the edge of the line) to the average of min and max
  midPointleft = max(0, (int) minLightLeft + maxLightLeft)/2 - midAdjustleft);
  midPointright = max(0, (int) minLightRight + maxLightRight)/2 - midAdjustright);
  
}

void loop()
{
   int CheckNumber = 0;
   int CheckAnswer = 1;
   lightReadingleft = analogRead(lightSensorleft);
   lightReadingright = analogRead(lightSensorright);
   
   if(lightReadingleft < midPointleft)
   {
     rightStop();
     leftForward(20);
     CheckNumber = CheckAnswer;
   }
   if((lightReadingright < midPointright && CheckNumber == CheckAnswer))
   {
     leftStop();
     rightForward(20);
   }
   
}

Mismatched parens. Change ")/2" to "/2".