Run id: 117467

Main.cc:3:1: error: 'a' does not name a type
 a[1001]; 
 ^
Main.cc: In function 'int main()':
Main.cc:9:8: error: 'a' was not declared in this scope
   cin>>a[i];
        ^
Main.cc:14:11: error: 'a' was not declared in this scope
   t = abs(a[i]-a[j]);
           ^