Having error while uploading and can't seem to see what the error is

My project is to use blynk for my fire detector but it seems that an error occured while uploading.

Below is the coding. Im using arduino. Can anyone help?

int LED = D2;
int RELAY = D4;
int Flame_sensor = D1;
int Flame_detected;

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

BlynkTimer timer;
char auth[] = "jovd0wly3APhqOwX6XJzwN4j0m6wpTwR"; //Auth code sent via Email
char ssid[] = "Alsan";
char pass[] = "12345678";

void notifyOnFire()
  Flame_detected = digitalRead(Flame_sensor);
  if (Flame_detected == 0) {
    Serial.println("Flame detected...! take action immediately.");
    Blynk.notify("Alert : Fire detected...! take action immediately.");
    digitalWrite(LED, HIGH);
    digitalWrite(RELAY, LOW);
    Serial.println("No Fire detected. stay cool");
    digitalWrite(LED, LOW);
    digitalWrite(RELAY, HIGH);
void setup()
  Blynk.begin(auth, ssid, pass);
  pinMode(LED, OUTPUT);
  pinMode(RELAY, OUTPUT);
  digitalWrite(RELAY, HIGH);
  pinMode(Flame_sensor, INPUT_PULLUP);
  timer.setInterval(1000L, notifyOnFire);
void loop()

@Minmin please edit your existing post and replace the screenshot with the copied and pasted compiler error message, and use triple backticks at the beginning and end as you did with your sketch.