[SOLVED] Unable to add State sync code snippet to my sketch!

Unable to add State sync code snippet to my sketch !
Screen shot attached !

the sketch i am trying to paste the snippet in is :
Pardon my Poor Coding , i am new to arduino …

#include <LiquidCrystal_I2C.h>
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <BlynkSimpleEthernet.h>
#include <SPI.h>
LiquidCrystal_I2C lcd(0x3F, 20, 4);
#include "RTClib.h"
RTC_DS1307 RTC;
#include <SimpleTimer.h>


char auth[] = " :smiling_imp:";
SimpleTimer timer;
SimpleTimer voltageprocess;
SimpleTimer rtc;
SimpleTimer current;
// Temperature Related Reading
const int tempInPin = A0;
int tempInValue ; //temperature read
int tempOutDeg ;
int tempadjustment = 45;
WidgetLED led1(V3); //register to virtual pin 3
WidgetLED ledR1(V10); //register to virtual pin 3
WidgetLED ledR2(V11); //register to virtual pin 3
WidgetLED ledR3(V12); //register to virtual pin 3
WidgetLED ledR4(V13); //register to virtual pin 3
const int relay1 = 6;
const int relay2 = 8;
const int relay3 = 7;
const int relay4 = 5;

///////////////////// Voltage Monitor Section Starts//////

int BatIn = A2;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000.0; // resistance of R1 (100K)
float R2 = 10000.0; // resistance of R2 (10K)
int value = 0;

//////////////////////Voltage Monitor Section Ends////////

//////////////////////Current Monitor Section Starts////////
const int currentPin = A3;
const unsigned long sampleTime = 100000UL;
const unsigned long numSamples = 250UL;
const unsigned long sampleInterval = sampleTime / numSamples;
const int adc_zero = 510;
//////////////////////Current Monitor Section Ends////////


void setup()
{
  //lcd.begin (20, 4); // for 16 x 2 LCD module
  lcd.init();
  lcd.setBacklight(HIGH);
  Serial.begin(9600);
  lcd.setCursor (0, 0);
  lcd.print(" PLEASE  WAIT WHILE ");
  lcd.setCursor (0, 1);
  lcd.print(" THE CONNECTION  TO ");
  lcd.setCursor (0, 2);
  lcd.print("  THE BLYNK SERVERS ");
  lcd.setCursor (0, 3);
  lcd.print("   IS  ESTABLISHED  ");
  Blynk.begin(auth);
  led1.on();
  lcd.clear();

  //  lcd.setBacklightPin(3, POSITIVE);
  lcd.setBacklight(HIGH);

  {
    Wire.begin();
    Serial.begin(9600);
  }
  // function to be called accordingly
  timer.setInterval(500L, sendUptime); // temperature and uptime
  voltageprocess.setInterval(1000L, voltagesense);
  rtc.setInterval(1000L, lcdclock);
  current.setInterval(1000L, amps);
  pinMode(BatIn, INPUT);
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);
  pinMode(relay3, OUTPUT);
  pinMode(relay4, OUTPUT);
  digitalWrite(relay1, HIGH);
  digitalWrite(relay2, HIGH);
  digitalWrite(relay3, HIGH);
  digitalWrite(relay4, HIGH);
  ledR1.off();
  ledR2.off();
  ledR3.off();
  ledR4.off();

}


BLYNK_WRITE(V2)
{
  int i = param.asInt();
  if (i == 1) {
    lcd.setBacklight(HIGH);
    led1.on();
    Blynk.email("ahsan@alahsan.xyz", "LCA UNIT's LCS (TURNED ON) STATUS UPDATE", "LCA UNIT's LCD JUST TURNED ON !");
  }
  else {
    lcd.setBacklight(LOW);
    led1.off();
    Blynk.email("ahsan@alahsan.xyz", "LCA UNIT's LCS (TURNED OFF) STATUS UPDATE", "LCA UNIT's LCD JUST TURNED OFF !");

  }
}

////////////////////////////////////////////INVERTED BUTTON CODE ENDS/////////////////////////////////////////////////////////////////////////////

BLYNK_WRITE(V6)
{
  int i = param.asInt();
  if (i == 0) {
    digitalWrite(relay1, HIGH);
    ledR1.off();
  }
  else {
    digitalWrite(relay1, LOW);
    ledR1.on();
  }

}
BLYNK_WRITE(V7)
{
  int i = param.asInt();
  if (i == 0) {
    digitalWrite(relay2, HIGH);
    ledR2.off();

  }
  else {
    digitalWrite(relay2, LOW);
    ledR2.on();
  }
}

BLYNK_WRITE(V8)
{
  int i = param.asInt();
  if (i == 0) {
    digitalWrite(relay3, HIGH);
    ledR3.off();

  }
  else {
    digitalWrite(relay3, LOW);
    ledR3.on();

  }
}
BLYNK_WRITE(V9)
{
  int i = param.asInt();
  if (i == 0) {
    digitalWrite(relay4, HIGH);
    ledR4.off();

  }
  else {
    digitalWrite(relay4, LOW);
    ledR4.on();

  }
}
////////////////////////////////////////////INVERTED BUTTON CODE ENDS/////////////////////////////////////////////////////////////////////////////

void loop()
{


  Blynk.run();
  timer.run(); // Initiates SimpleTimer
  voltageprocess.run();
  current.run();
  rtc.run();






}

void sendUptime()
{
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V1, millis() / 1000);
  lcd.setCursor (0, 3);
  lcd.print("Seconds Up:");
  lcd.setCursor (11, 3);
  lcd.print(millis() / 1000);
  {
    //Read Temperature Sensor
    tempInValue = analogRead(tempInPin);

    tempOutDeg = (5 * tempInValue * 100 / 1024) + tempadjustment;

    lcd.setCursor (0, 1);
    lcd.print("TEMP:");

    lcd.setCursor (5, 1);
    lcd.print(tempOutDeg);
  }
  Blynk.virtualWrite(V0, tempOutDeg);
}

void voltagesense()
{
  value = analogRead(BatIn);
  vout = (value * 5.0) / 1024.0; // see text
  vin = vout / (R2 / (R1 + R2));

  {
    if (vin < 0.09) {
      vin = 0.0; //statement to quash undesired reading !
    }

    lcd.setCursor (0, 2);
    lcd.print("BATT:");
    lcd.print(vin);

    if (vin >= 13.75) {
      lcd.setCursor (5, 2);
      lcd.print("FULL ");
    }
    else {
      lcd.setCursor (5, 2);
      lcd.print(vin , 1);
    }
    //
    //    lcd.setCursor (11, 2);
    //    lcd.print("Each:");
    //
    //    //  lcd.setCursor (5, 3);
    //    //  lcd.print((vin/2));
    //
    //    if ((vin / 2) >= 13.87) {
    //      lcd.setCursor (16, 2);
    //      lcd.print("FULL ");
    //    }
    //    else {
    //      lcd.setCursor (16, 2);
    //      lcd.print((vin / 2));
    //    }
  }

  Blynk.virtualWrite(V4, vin);
}
void lcdclock()
{
  DateTime now = RTC.now();
  lcd.home (); // set cursor to 0,0
  lcd.setCursor (0, 0);
  if (now.hour() < 10) { // Add a zero, if necessary, as above
    lcd.print(0);
  }
  ////////////////////////////////24 hour to 12 conversion starts//////////////////////////////
  if (now.hour() >= 13) {
    int thour = (now.hour() - 12);
    if (thour < 10) { // Add a zero, if necessary, as above
      lcd.print(0);
    }
    lcd.print(thour);
  }
  else {
    lcd.print(now.hour()); // Display the current hour
  }
  ////////////////////////////////24 hour to 12 conversion ends/////////////////////////////////
  lcd.setCursor (8, 0);
  switch (now.hour()) {
    case  13:
      lcd.print("PM");
      break;
    case 14:
      lcd.print("PM");
      break;
    case 15:
      lcd.print("PM");
      break;
    case 16:
      lcd.print("PM");
      break;
    case 17:
      lcd.print("PM");
      break;
    case 18:
      lcd.print("PM");
      break;
    case 19:
      lcd.print("PM");
      break;
    case 20:
      lcd.print("PM");
      break;
    case 21:
      lcd.print("PM");
      break;
    case 22:
      lcd.print("PM");
      break;
    case 23:
      lcd.print("PM");
      break;
    default:
      lcd.print("AM");
      break;
  }

  lcd.setCursor (2, 0);
  lcd.print(":");
  lcd.setCursor (3, 0);

  if (now.minute() < 10) { // Add a zero, if necessary, as above
    lcd.print(0);
  }
  lcd.print(now.minute(), DEC); // Display the current minutes

  lcd.setCursor (5, 0);
  lcd.print(":");
  lcd.setCursor (6, 0);

  if (now.second() < 10) { // Add a zero, if necessary, as above
    lcd.print(0);
  }
  lcd.print(now.second(), DEC); // Display the current seconds


  lcd.setCursor (11, 0);
  lcd.print(now.day(), DEC);

  lcd.setCursor (13, 0);
  lcd.print("- ");

  lcd.setCursor (14, 0);
  // lcd.print(now.month(), DEC);
  switch (now.month()) {
    case  1:
      lcd.print("JAN");
      break;
    case 2:
      lcd.print("FEB");
      break;
    case 3:
      lcd.print("MAR");
      break;
    case 4:
      lcd.print("APR");
      break;
    case 5:
      lcd.print("MAY");
      break;
    case 6:
      lcd.print("JUN");
      break;
    case 7:
      lcd.print("JUL");
      break;
    case 8:
      lcd.print("AUG");
      break;
    case 9:
      lcd.print("SEP");
      break;
    case 10:
      lcd.print("OCT");
      break;
    case 11:
      lcd.print("NOV");
      break;
    case 12:
      lcd.print("DEC");
      break;

    default:
      lcd.print("!");
      break;
  }

  lcd.setCursor (17, 0);
  lcd.print("-");

  lcd.setCursor (18, 0);
  //  lcd.print(now.year(), DEC);
  switch (now.year()) {
    case  2015:
      lcd.print("15");
      break;
    case 2016:
      lcd.print("16");
      break;
    case 2017:
      lcd.print("17");
      break;
    default:
      lcd.print("!");
      break;
  }
}


void amps()
{
  unsigned long currentAcc = 0;
  unsigned int count = 0;
  unsigned long prevMicros = micros() - sampleInterval ;
  while (count < numSamples)
  {
    if (micros() - prevMicros >= sampleInterval)
    {
      int adc_raw = analogRead(currentPin) - adc_zero;
      currentAcc += (unsigned long)(adc_raw * adc_raw);
      ++count;
      prevMicros += sampleInterval;
    }
  }

  float rms = sqrt((float)currentAcc / (float)numSamples) * (75.7576 / 1024.0);
  //Serial.println(rms);
  Blynk.virtualWrite(V5, rms);
  lcd.setCursor (10, 1);
  lcd.print("AMPs:");
  lcd.setCursor (15, 1);
  lcd.print(rms);
}

You missed closing bracket.

same again …

i have even tried copying the sample sketch from :

https://raw.githubusercontent.com/blynkkk/blynk-library/master/examples/More/Sync/Sync.ino

but same error :

What version of library do you have?

the problem has been solved by updating the libs !