problems compiling NEED HELP

here is my code and I am trying to get the servo motor to turn and serial.print the position of the motor

#include <Servo.h>
Servo myservo;
int pos = 0;
int posRead = 0;
void setup() {
  myservo.attach(9);
  
  Serial.begin(9600);

}

void loop() {
  for (pos = 0; pos <= 180; pos += 1){
    myservo.write(pos);
    delay(15);
  }
  
  
  posRead = digitalRead(pos);
  Serial.print(posRead);
  
}

please tell me if you know why it wont compile

Auto format it in the IDE with a ctrl-T and the answer will leap out at you.

Do you really have pin numbered 181?