Analog line sensor QRE1113 error

Hi,

I am making a line follower robot but I am getting this error in my code..
error: expected ',' or ';' before 'pinMode'

and this is my code:
int sensorValue = analogRead(A0)
//Returns value from the QRE1113 connected to pin # 0
//Lower numbers mean more refleacive
//More than 3000 means nothing was reflected.
pinMode( A0, OUTPUT );
analogWrite( A0, HIGH );
delayMicroseconds(10);
pinMode( A0, INPUT );
long time = micros();
//time how long the input is HIGH, but quit after 3ms as nothing happens after that
while (analogRead(A0) == HIGH && micros() - time < 3000);
int diff = micros() - time;
return diff;
}

I hope somebody could help me, that boosts my project a lot!

Max