error compiling for board arduino nao

Error:
Arduino: 1.8.6 Hourly Build 2018/06/18 03:33 (Windows 8.1), Board: "Arduino/Genuino Uno"

In file included from C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:18:0,

from C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,

from C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Adapters/BlynkSerial.h:18,

from C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/BlynkSimpleStream.h:18,

from C:\Users\Aaghav\Documents\Arduino\ir_switch\ir_switch.ino:10:

C:\Users\Aaghav\Documents\Arduino\ir_switch\ir_switch.ino: In function 'void setup()':

C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:152:5: error: expected initializer before 'void'

void BlynkWidgetWrite ## pin (BlynkReq BLYNK_UNUSED &request, const BlynkParam BLYNK_UNUSED &param)

^

C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:160:31: note: in expansion of macro 'BLYNK_WRITE_2'

#define BLYNK_WRITE(pin) BLYNK_WRITE_2(pin)

^

C:\Users\Aaghav\Documents\Arduino\ir_switch\ir_switch.ino:44:3: note: in expansion of macro 'BLYNK_WRITE'

BLYNK_WRITE(state2)

^

C:\Users\Aaghav\Documents\Arduino\ir_switch\ir_switch.ino: In function 'void loop()':

C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:152:5: error: expected ';' before 'void'

void BlynkWidgetWrite ## pin (BlynkReq BLYNK_UNUSED &request, const BlynkParam BLYNK_UNUSED &param)

^

C:\Users\Aaghav\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:160:31: note: in expansion of macro 'BLYNK_WRITE_2'

#define BLYNK_WRITE(pin) BLYNK_WRITE_2(pin)

^

C:\Users\Aaghav\Documents\Arduino\ir_switch\ir_switch.ino:94:7: note: in expansion of macro 'BLYNK_WRITE'

BLYNK_WRITE(state3);

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

Code:

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT DebugSerial

// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX

#include <BlynkSimpleStream.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "71221bb38c82462891a2c30a4d805d69";

int ir1=A0;//defining all the pins
int ir2=A1;
int ir3=A2;
int ir4=A3;
int state1=LOW;
int state2=LOW;
int state3=LOW;
int state4=LOW;

void setup() {
Blynk.run();
pinMode(A0, INPUT);
pinMode(A1, INPUT);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
digitalWrite(8, LOW);
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(13, LOW);
BLYNK_WRITE(state1)
BLYNK_WRITE(state2)
BLYNK_WRITE(state3)
BLYNK_WRITE(state4)

}

void loop() {
// Debug console
DebugSerial.begin(9600);

// Blynk will work through Serial
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, auth);

if (digitalRead(ir1)==LOW) {
delay(500);
if (state1==LOW) {
delay(500);
state1=HIGH;
BLYNK_WRITE(state1);
digitalWrite(8,HIGH); //turns high

}
else {
delay(500);
state1=LOW;
digitalWrite(8,LOW);
}
}
if (digitalRead(ir2)==LOW) {
delay(500);
if (state2==LOW) {
delay(500);
state2=HIGH;
BLYNK_WRITE(state2);
digitalWrite(9,HIGH); //turns high

}
else {
delay(500);
state2=LOW;
digitalWrite(9,LOW);
}
}
if (digitalRead(ir3)==LOW) {
delay(500);
if (state3==LOW) {
delay(500);
state3=HIGH
BLYNK_WRITE(state3);
digitalWrite(10,HIGH); //turns high

}
else {
delay(500);
state3=LOW;
digitalWrite(10,LOW);
}
}
if (digitalRead(ir4)==LOW) {
delay(500);
if (state4==LOW) {
delay(500);
state4=HIGH;
BLYNK_WRITE(state4);
digitalWrite(11,HIGH); //turns high

}
else {
delay(500);
state4=LOW;
digitalWrite(11,LOW);
}
}
//
else
digitalWrite(13,HIGH);
delay(500);

}

You're missing semicolons.

Missing semi colons in the void setup section