Got this error when compiling my program

expected constructor, destructor, or type conversion before '(' token

void setup()
// put your setup code here, to run once:
{

}

pinMode (buttonApin, INPUT_PULLUP);
pinMode (buttonBpin, INPUT_PULLUP);

void loop()
// put your main code here, to run repeatedly:

{

if(digitalRead(buttonApin) == LOW)
{
digitalWrite(ledPin, HIGH);
}

if (digitalRead(buttonBpin) == LOW)
{
digitalWrite(ledPin, LOW);
}
}

void setup() 
  // put your setup code here, to run once:
{
  

}

pinMode (buttonApin, INPUT_PULLUP);
pinMode (buttonBpin, INPUT_PULLUP);

Do people even look at their code when they get an error or do they just go straight to posting?

I think you've got a couple of lines that have tried to escape your setup method.

Delta_G:
I think you've got a couple of lines that have tried to escape your setup method.

And then when you fix that, you'll need to declare the pin names.

This is your full error message

sketch_jan04a:8: error: expected constructor, destructor, or type conversion before '(' token

 pinMode (buttonApin, INPUT_PULLUP);

         ^

sketch_jan04a:9: error: expected constructor, destructor, or type conversion before '(' token

 pinMode (buttonBpin, INPUT_PULLUP);

         ^

C:\Users\sterretje\AppData\Local\Temp\arduino_3cedea2dd92612558140226e5eb8e195\sketch_jan04a.ino: In function 'void loop()':

sketch_jan04a:16: error: 'buttonApin' was not declared in this scope

   if (digitalRead(buttonApin) == LOW)

                   ^

sketch_jan04a:18: error: 'ledPin' was not declared in this scope

     digitalWrite(ledPin, HIGH);

                  ^

sketch_jan04a:21: error: 'buttonBpin' was not declared in this scope

   if (digitalRead(buttonBpin) == LOW)

                   ^

sketch_jan04a:23: error: 'ledPin' was not declared in this scope

     digitalWrite(ledPin, LOW);

                  ^

exit status 1
expected constructor, destructor, or type conversion before '(' token

Usually you work your way down fixing the first one, next the second one etc.

Please learn how to use code tags when posting code and error message.