Expected initializer before 'void'

#include <Servo.h>
Servo Myservo
void setup() {
Myservo.attach(9);
Myservo.write(90);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
}

void loop() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
delay(5);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
delay(5);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
delay(5);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
delay(5);
digitalWrite(5,LOW);

}

Use Code tags when posting.
You are missing a semicolon after Servo MyServo.

This line

Servo Myservo

is missing a semicolon at the end.

ALSO…

To post:

  1. Use CTRL-T in the Arduino IDE to autoformat your code.
  2. Paste the autoformatted code between code tags (the </> button)
    so that we can easily see and deal with your code.

sorry first post was already wondering how they got it like that and thanks for the help both of you

Error messages usually point to the line where the compiler first detected an error (not necessarily where the error occurred).

Your post robbed us of that information. Next time, please copy and paste the error messages IN CODE TAGS!

Not in this case, the compiler went halfway through the code before it decided that the MyServo statement was not complete.