error: variable or field 'setup' declared void

I do not know if it is here where I can ask for help on my code, in case of not being yes, help me, since I am new to this, whenever I check my code, I get the error "variable or field 'setup' declared void" in the line of the code "void setup() }"
And I would like to know if my code is right:

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

}

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

}
#include <Keyboard.h>
#include <SD.h>  
#include <SPI.h>
#include <TMRpcm.h>  

#define pinSD 10     //define el pin para seleccionar la tarjeta SD

TMRpcm tmrpcm;   //Se crea un objeto de la librería TMRpcm

void setup(39) {
  // make pin 2 an input and turn on the pull-up resistor so it goes high unless
  // connected to ground:
  pinMode(2, INPUT_PULLUP);
  Keyboard.begin();
  
  tmrpcm.speakerPin = 9; //Se define el pin en el que está conectada la bocina
  Serial.begin(9600);    //Se inicia la comunicación serial

  if (!SD.begin(pinSD)) {  // see if the card is present and can be initialized:
    Serial.println("Fallo en la tarjeta SD");  //Aviso de que algo no anda bien 
    return;   //No hacer nada si no se pudo leer la tarjeta
  }
void loop() {
  while (digitalRead(2) == HIGH) {
    // do nothing until pin 2 goes low
    delay(500);
  }
  delay(1000);

      if Keyboard.press('Q');
      play("q.wav");
      if Keyboard.press('W');
      play("w.wav");
       if Keyboard.press('E');
      play("q.wav");
      if Keyboard.press('R');
      play("w.wav");
       if Keyboard.press('T');
      play("q.wav");
      if Keyboard.press('Y');
      play("w.wav");
       if Keyboard.press('U');
      play("q.wav");
      if Keyboard.press('I');
      play("w.wav");
       if Keyboard.press('O');
      play("q.wav");
      if Keyboard.press('P');
      play("w.wav");
       if Keyboard.press('A');
      play("q.wav");
      if Keyboard.press('S');
      play("w.wav");
       if Keyboard.press('D');
      play("q.wav");
      if Keyboard.press('F');
      play("w.wav");
       if Keyboard.press('G');
      play("q.wav");
      if Keyboard.press('H');
      play("w.wav");
       if Keyboard.press('J');
      play("q.wav");
      if Keyboard.press('K');
      play("w.wav");
       if Keyboard.press('L');
      play("q.wav");
      if Keyboard.press('Z');
      play("w.wav");
       if Keyboard.press('X');
      play("q.wav");
      if Keyboard.press('C');
      play("w.wav");
       if Keyboard.press('V');
      play("q.wav");
      if Keyboard.press('B');
      play("w.wav");
       if Keyboard.press('N');
      play("q.wav");
      if Keyboard.press('M');
      play("w.wav");
       if Keyboard.press('1');
      play("q.wav");
      if Keyboard.press('2');
      play("w.wav");
       if Keyboard.press('3');
      play("q.wav");
      if Keyboard.press('4');
      play("w.wav");
       if Keyboard.press('5');
      play("q.wav");
      if Keyboard.press('6');
      play("w.wav");
       if Keyboard.press('7');
      play("q.wav");
      if Keyboard.press('8');
      play("w.wav");
       if Keyboard.press('9');
      play("q.wav");
      if Keyboard.press('0');
      play("w.wav");
      delay(100);

You have two definitions of setup() and loop().

Your sketch must have one, and only one, of each.

Delete the two empty ones at the top of the sketch.

In the future, post questions about your code in the programming help section. This section is for problems with the IDE itself, or with compiling/uploading all sketches (as opposed to compiling a specific sketch)