运行 ID: 80784

Main.cc: In function ‘int main()’:
Main.cc:6:5: error: expected initializer before ‘int’
     int n;
     ^~~
Main.cc:7:10: error: ‘n’ was not declared in this scope
     cin>>n;
          ^
Main.cc:11:11: error: ‘a’ was not declared in this scope
      cin>>a[i];
           ^
Main.cc:16:2: error: expected initializer before ‘for’
  for(int i=0;i