Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~
/in/foo.cc:8:21: error: expected ')' before ';' token
  for(int i=0;i<n;i++;)
                     ^
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;i<n;i++;)
  ^~~
/in/foo.cc:8:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=0;i<n;i++;)
                      ^
/in/foo.cc:8:22: error: expected primary-expression before ')' token
/in/foo.cc:11:3: error: 'cout' was not declared in this scope
   cout<<a[i];
   ^~~~

信息

递交者
类型
递交
题目
P1003 1.6.4数组逆序重放
语言
C++
递交时间
2021-05-26 16:22:28
评测时间
2021-05-26 16:22:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes