Run id: 79955

Main.cc: In function 'int main()':
Main.cc:6:17: error: 'n' was not declared in this scope
  for(int i=1;i<=n;i++){
                 ^
Main.cc:7:11: error: invalid types 'int[int]' for array subscript
   cin>>a[i];
           ^
Main.cc:9:12: error: 'n' was not declared in this scope
  for(int j=n;j>=1;j--){
            ^
Main.cc:10:12: error: invalid types 'int[int]' for array subscript
   cout<