记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:46:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   46 |  for (int s=1;s<=n1;s++)
      |  ^~~
foo.cc:48:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   48 |   a[] += x;
      |   ^
foo.cc:48:5: error: expected primary-expression before ']' token
   48 |   a[] += x;
      |     ^
foo.cc:49:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   49 |  for (int j=1;j<=n2;j++)
      |  ^~~
foo.cc:51:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   51 |   b[] += x;
      |   ^
foo.cc:51:5: error: expected primary-expression before ']' token
   51 |   b[] += x;
      |     ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2-3 参赛人数
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:57:01
评测时间
2022-07-28 21:57:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes