Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:6: error: 'a' was not declared in this scope
 cin>>a[i];for(int i=n-1;i>=0;i--)
      ^
/in/foo.cc:9:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 for(int i=0;i<n;i++)
 ^~~
/in/foo.cc:10:11: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 cin>>a[i];for(int i=n-1;i>=0;i--)
           ^~~
/in/foo.cc:11:7: error: 'a' was not declared in this scope
 cout<<a[i]<<"";
       ^
/in/foo.cc:6:5: warning: unused variable 'A' [-Wunused-variable]
 int A[MAXN];
     ^
/in/foo.cc:7:5: warning: unused variable 'i' [-Wunused-variable]
 int i,n;
     ^

信息

递交者
类型
递交
语言
C++
递交时间
2022-06-10 15:52:30
评测时间
2022-06-10 15:52:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes