Unqualified-id before while

Hey guys this is my coding and I dont understand what my errors are.

Unqualified-id before while
Unqualified-id before do

int value = analogRead(0);
while{(value > 500);{}
for(int k = 5; k < 14; k++){
digitalWrite(k,HIGH);
delay(100);
digitalWrite(k,LOW);
delay(75);
}
}

int value = digitalRead(2);
do{
for(int j = 5; j < 14; j++);{
digitalWrite(j,HIGH);
delay(100);
digitalWrite(j,LOW);
delay(70);
}
}while(value == HIGH);

Hello and welcome,

Put some spaces around things, indent your code, and you will spot the obvious errors :wink:

See trap 13 and read the rest of the link.