Why does it say "Servo" does not name a type
Your include statement seems to be incomplete; add "Servo.h" to your include to make it look like this:

#include "Servo.h"


Without including "Servo.h", the compiler doesn't know what a servo is, and thus "Servo does not name a type".