Compile Error

foo.cc: In function 'int main()':
foo.cc:9:8: error: 'a' was not declared in this scope
    9 |   cin>>a[i];
      |        ^
foo.cc:13:10: error: expected unqualified-id before numeric constant
   13 |  for(int 1;i<=n;i++)
      |          ^
foo.cc:13:9: error: expected ';' before numeric constant
   13 |  for(int 1;i<=n;i++)
      |         ^~
      |         ;
foo.cc:13:12: error: 'i' was not declared in this scope
   13 |  for(int 1;i<=n;i++)
      |            ^
foo.cc:13:16: error: expected ')' before ';' token
   13 |  for(int 1;i<=n;i++)
      |     ~          ^
      |                )
foo.cc:13:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   13 |  for(int 1;i<=n;i++)
      |  ^~~
foo.cc:13:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   13 |  for(int 1;i<=n;i++)
      |                 ^
foo.cc:13:17: error: 'i' was not declared in this scope
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1849 宇宙微波接收器
语言
C++
递交时间
2022-01-30 16:43:31
评测时间
2022-01-30 16:43:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes