Run id: 106811

Main.cc: In function 'int main()':
Main.cc:13:9: error: conflicting declaration 'int a'
     int a,a1,a2;
         ^
Main.cc:7:11: note: previous declaration as 'int a [1000]'
     int n,a[1000]; 
           ^
Main.cc:14:7: error: incompatible types in assignment of 'int' to 'int [1000]'
     a = abs (a[1] - a[2]);
       ^
Main.cc:21:11: error: incompatible types in assignment of 'int' to 'int [1000]'
         a = abs (a[i] - a[j]);
           ^
Main.cc: At global scope:
Main.cc:26:11: error: 'cout' does not name a type
         } cout<