Compile Error

foo.cc: In function 'int main()':
foo.cc:9:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    9 |  for(int i=a;i<=b;i++);
      |  ^~~
foo.cc:10:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |   sum+=i;
      |   ^~~
foo.cc:10:8: error: 'i' was not declared in this scope
   10 |   sum+=i;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1628 A2-1 循环结构入门:数列求和
语言
C++
递交时间
2021-12-22 13:21:54
评测时间
2021-12-22 13:21:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes