message erreur compteur

this is our program:

int compteur = 0;
int bouton1 = 0;
int bouton2 = 0;
const int ledpin = 0;
void setup() {
pinMode(2, INPUT);
pinMode(3, INPUT);
pinMode(5, OUTPUT);

}

void loop() {

bouton1 = digitalRead(2);
bouton2 = digitalRead(3);

if (bouton1 == HIGH) {
delay(50);

if (bouton1 == HIGH) {
compteur = compteur + 1;
}}

if (bouton2 == HIGH) {
delay(50);

if (bouton2 == HIGH) {
compteur = compteur - 1; }}

if (compteur < 1) {
digitalWrite(5, LOW);
}
if (compteur >= 1) {
digitalWrite(5, HIGH);
}
}

and this is the error messages:

compteur0.ino:1:5: error: redefinition of 'int compteur'
compteur.ino:1:5: error: 'int compteur' previously defined here
compteur0.ino:2:5: error: redefinition of 'int bouton1'
compteur.ino:2:5: error: 'int bouton1' previously defined here
compteur0.ino:3:5: error: redefinition of 'int bouton2'
compteur.ino:3:5: error: 'int bouton2' previously defined here
compteur0.ino: In function 'void setup()':
compteur0.ino:5:6: error: redefinition of 'void setup()'
compteur.ino:5:6: error: 'void setup()' previously defined here
compteur0.ino: In function 'void loop()':
compteur0.ino:12:6: error: redefinition of 'void loop()'
compteur.ino:12:6: error: 'void loop()' previously defined here
Erreur lors de la compilation.

please help me !

It compiles for me.

Have you, by any chance, got 2 tabs in the IDE, one with the filename of compteur.ino and another with the filename of compteur0.ino ?

   if (bouton1 == HIGH) {
     delay(50);
   
     if (bouton1 == HIGH) {

How could it not be HIGH?