Compile Error

foo.cc: In function 'int main()':
foo.cc:7:9: error: 'i' was not declared in this scope
    7 |     for(i=x,k=0;i<=y;i++,k++)
      |         ^
foo.cc:7:13: error: 'k' was not declared in this scope
    7 |     for(i=x,k=0;i<=y;i++,k++)
      |             ^
foo.cc:12:9: error: 'i' was not declared in this scope
   12 |     for(i=0;i<k;i++)
      |         ^
foo.cc:12:15: error: 'k' was not declared in this scope
   12 |     for(i=0;i<k;i++)
      |               ^
foo.cc:21:14: error: 'k' was not declared in this scope
   21 |     sort(b,b+k);
      |              ^
foo.cc:22:7: error: 'i' was not declared in this scope
   22 |   for(i=0;i<k;i++)
      |       ^
foo.cc:25:9: error: 'bt' was not declared in this scope; did you mean 'b'?
   25 |         bt=b[i];
      |         ^~
      |         b
foo.cc:26:15: error: 'c' was not declared in this scope
   26 |         while(c)
      |               ^
foo.cc:32:9: error: 'i' was not declared in this scope
   32 |     for(i=0;i<k;i++)
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

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