formatting issues

Hello everyone I keep getting errors with my code could someone help me format into a way the program understands it? thank you

#define buttonPin2 28
#define led1 8
#define led2 7
#define led3 6

int state = 0;
int old = 0;
int buttonPoll = 0;

void setup() {
  // put your setup code here, to run once:
pinMode(buttonPin2,INPUT);
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
pinMode(led3,OUTPUT);

digitalWrite(led1,LOW);
digitalWrite(led2,LOW);
digitalWrite(led3,LOW);

}

void loop() {
  // put your main code here, to run repeatedly:
buttonPoll = digitalRead(buttonPin2);
if(buttonPoll == 1)(
  delay(50);
  buttonPoll = digitalRead(buttonPin2);
  if(buttonPoll == 0)(
    state = old + 1;
    )}
    else(
      delay(100);
    }
    switch (state);{
      case 1:
      digitalWrite(led1,HIGH);
      digitalWrite(led2,LOW);
      digitalWrite(led3,LOW);
      old = state;
      break;
      case 2:
       digitalWrite(led1,LOW);
      digitalWrite(led2,HIGH);
      digitalWrite(led3,LOW);
      old = state;
      break;
      case 3:
      digitalWrite(led1,LOW);
      digitalWrite(led2,LOW);
      digitalWrite(led3,HIGH);
      old = state;
      break;
      default:
      digitalWrite(led1,LOW);
      digitalWrite(led2,LOW);
      digitalWrite(led3,LOW);
      old = 0;
      break;
    }
    }

You do not use parenthesis for the body of an if() statement. You need to use curly braces

  if (buttonPoll == 1) {
    delay(50);
    buttonPoll = digitalRead(buttonPin2);
    if (buttonPoll == 0) {
      state = old + 1;
    }
  }
  else {
    delay(100);
  }

This

  if (buttonPoll == 1)(
      delay(50);
      buttonPoll = digitalRead(buttonPin2);
      if (buttonPoll == 0)(
        state = old + 1;
      )
  }
else(
  delay(100);
}

should be:

  if (buttonPoll == 1) {
      delay(50);
      buttonPoll = digitalRead(buttonPin2);
      if (buttonPoll == 0) {
        state = old + 1;
      }
  }
  else {
    delay(100);
  }

This:

switch (state); {
case 1:
digitalWrite(led1, HIGH);
  digitalWrite(led2, LOW);
  digitalWrite(led3, LOW);
  old = state;
  break;
case 2:
  digitalWrite(led1, LOW);
  digitalWrite(led2, HIGH);
  digitalWrite(led3, LOW);
  old = state;
  break;
case 3:
  digitalWrite(led1, LOW);
  digitalWrite(led2, LOW);
  digitalWrite(led3, HIGH);
  old = state;
  break;
default:
  digitalWrite(led1, LOW);
  digitalWrite(led2, LOW);
  digitalWrite(led3, LOW);
  old = 0;
  break;
}

shoud be:

  switch (state) {
    case 1:
      digitalWrite(led1, HIGH);
      digitalWrite(led2, LOW);
      digitalWrite(led3, LOW);
      old = state;
      break;
    case 2:
      digitalWrite(led1, LOW);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, LOW);
      old = state;
      break;
    case 3:
      digitalWrite(led1, LOW);
      digitalWrite(led2, LOW);
      digitalWrite(led3, HIGH);
      old = state;
      break;
    default:
      digitalWrite(led1, LOW);
      digitalWrite(led2, LOW);
      digitalWrite(led3, LOW);
      old = 0;
      break;
  }