expected constructor destructor or type conversion before ';' token

So I’m trying to make a capacitive slider that changes led intensity as a person slides their finger from one side to the other. (so all the way to the end would make it turn off and to the other end it would make it the brightest) here is the code I’m using but I keep getting the error I’ve written in the title. Thanks for the help guys!!

Error is at the ‘voidloop()’

#include <CapacitiveSensor.h>

int led = 42;                                          //change '42' to any desired pin...
long time = 0;
int state = HIGH;

boolean yes;
boolean previous = false;

int debounce = 200;

CapacitiveSensor   cs_4_2 = CapacitiveSensor(4,2);        // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired// To add more sensors...//CapacitiveSensor   cs_4_6 = CapacitiveSensor(4,6);        // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil//CapacitiveSensor   cs_4_8 = CapacitiveSensor(4,8);        // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil

voidsetup()                   
{
   cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);  //Calibrate the sensor... 
   pinMode(led, OUTPUT);
}

voidloop() 
{
    long total1 =  cs_4_2.capacitiveSensor(30);
    
    if (total1 > 60){yes = true;}
    else {yes = false;}    
    
    // to toggle the state of state
    if(yes == true && previous  == false && millis() - time>debounce){
      
       if(state == LOW){
         state = HIGH;
       }
       else 
         state = LOW;
         time = millis();     
       
    }
       
   
      digitalWrite(led, state);
      previous = yes;

      Serial.println(millis()-time);
      delay(10);

      int x = map(total1, 100, 800, 0, 255);

analogWrite(13, x);


}

void setup()

void loop()