exit status 1 Error compiling for board Arduino/Genuino Uno

Need help

#include <Servo.h>

Servo ser1;
int ser1Pin1 = 3;
int ser1Pin2 = 4;
int enablePin = 5;
int state;
int flag = 0;

void setup() {
pinMode(ser1Pin1, OUTPUT);
pinMode(ser1Pin2, OUTPUT);
pinMode(enablePin, OUTPUT);
digitalWrite(enablePin, HIGH);
Serial.begin(9600);
}

void loop() {
if (Serial.available() > 0) {
state = Serial.read();
flag = 0;
}
if (state == ‘0’) {
digitalWrite(ser1Pin1, LOW);
digitalWrite(ser1Pin2, LOW);
if (flag == 0) {
Serial.println(“Stop”);
flag = 1;
}
else if (state == ‘1’) {
digitalWrite(ser1Pin1, LOW);
digitalWrite(ser1Pin2, HIGH);
if (flag == 0) {
Serial.println(“right”);
flag = 1;
}
}
else if (state == ‘2’) {
digitalWrite(ser1Pin1, HIGH);
digitalWrite(ser1Pin2, LOW);
if (flag == 0) {
Serial.println(“left”);
flag = 1;
}
}
}
}

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn’t show the posting toolbar then you can just manually add the code tags:

[code]

[color=blue]// your code is here[/color]

[/code]

Using code tags and other important information is explained in the How to use this forum post. Please read it.

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the forum toolbar).

What is the exact error you have seen.