*Solved* error message "redefinition of 'void setup()' "

Hi, I started to program with an arduino since few days.
and today, i received a message error on a simple program that runs a servo.
I don’t understand why there are errors, so i post here ^^

this is the program code :

#include <Servo.h>

 Servo myservo;
 int ori = 0;

 void setup()
 {
    myservo.attach(10);
 }

 void loop()
 {
   if( 15<(abs( analogRead(A1) - analogRead(A2))) )
   {
      ori += map((analogRead(A1)-analogRead(A2)),0,1023,0,360);
      myservo.write(ori);
   }
 }

and this is the error messages :

orientation_auto.ino: In function 'void setup()':
orientation_auto:6: error: redefinition of 'void setup()'
sketch_may01a:3: error: 'void setup()' previously defined here
orientation_auto.ino: In function 'void loop()':
orientation_auto:11: error: redefinition of 'void loop()'
sketch_may01a:8: error: 'void loop()' previously defined here

why declare a variable redefine the main function x) ?
sorry again if there are english errors
Balafre

I pasted your code into the IDE, and compiled. I only got one "error":

Binary sketch size: 2,660 bytes (of a 30,720 byte maximum)

It's not a problem, just a message x) !
I have opened the program in another window and it works well
It seems that there are problems when multiples tabs are opened in the same windows,
thank to your help in my stupid problem x)