Compile Error

foo.cc: In function 'int main()':
foo.cc:9:4: error: expected ';' before '{' token
   a{++k}=i;
    ^
foo.cc:9:8: warning: statement has no effect [-Wunused-value]
   a{++k}=i;
        ^
foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=x;i<=y;i++)
  ^~~
foo.cc:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   a{++k}=i;
         ^
foo.cc:9:9: error: expected primary-expression before '=' token
foo.cc:9:10: error: 'i' was not declared in this scope
   a{++k}=i;
          ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2424 近似排序
语言
C++
递交时间
2021-11-07 18:08:28
评测时间
2021-11-07 18:08:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes