exit status 1 expected unqualified-id before 'else'

/*

  • made by technvation
  • uses open source blynk app to send data over the interent
  • This example code is in public domain.
  • feel free to modify, change, improve
    */
    #define BLYNK_PRINT Serial
    #include <Ultrasonic.h>

#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleMKR1000.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = “12f7a8cb125e4e688bc22cedacd0ced9”;

// Your WiFi credentials.
// Set password to “” for open networks.
char ssid = “ADIT’s iPhone”;
char pass = “A93rtur3”;

BlynkTimer timer;
int distance = 0;
int thresh[3] = {25, 50, 75};
Ultrasonic ultrasonic(12, 13);

WidgetLED green(V1);
WidgetLED orange(V2);
WidgetLED red(V3);

void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
//Blynk.begin(auth, ssid, pass, “blynk-cloud.com”, 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
}

void loop()
{
distance = ultrasonic.distanceRead();
Serial.println(distance);
Blynk.run();

if(distance<thresh[0]){
green.on();
}
else if(distance<thresh[1])
green.on();
orange.on();
}
else if(distance<thresh[2])
green.on();
orange.on();
red.on();
}
else{
green.off();
orange.off();
red.off();
delay(100);
}

Your braces ‘{’ and ‘}’ are all over the place.

Format your code. Put labels at each closing brace corresponding the opening one. Use indenting. Put braces on new lines etc.

void loop()
{
    distance = ultrasonic.distanceRead();
    Serial.println(distance);
    Blynk.run();

    if (distance < thresh[0]) 
    {
        green.on();
        
    }//if
    else if (distance < thresh[1])
    {
        green.on();
        orange.on();
    }//elseif
    else if (distance < thresh[2])
    {
        green.on();
        orange.on();
        red.on();
    }//elseif
    else 
    {
        green.off();
        orange.off();
        red.off();
    }//else
    
    delay(100);
    
}//loop

A very helpful troubleshooting tool is the Auto Format feature (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor). If you do an Auto Format and then compare the resulting indentation to your intended program structure, it will quickly point you to where there is a missing or extra brace.

Another useful feature of the Arduino IDE/Arduino Web Editor is that when you place the cursor next to one bracket, it puts a box around the matching bracket. In the Arduino IDE, if the cursor is next to the closing bracket and the opening bracket is off the screen then it will show the opening bracket line in a tool tip after a short delay.