Compile Error

foo.cc: In function 'int main()':
foo.cc:7:24: warning: for increment expression has no effect [-Wunused-value]
    7 |  for(int i=100;i<=100;i<=999;i++)
      |                       ~^~~~~
foo.cc:7:29: error: expected ')' before ';' token
    7 |  for(int i=100;i<=100;i<=999;i++)
      |     ~                       ^
      |                             )
foo.cc:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    7 |  for(int i=100;i<=100;i<=999;i++)
      |  ^~~
foo.cc:7:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    7 |  for(int i=100;i<=100;i<=999;i++)
      |                              ^
foo.cc:7:30: error: 'i' was not declared in this scope
foo.cc:6:6: warning: unused variable 'k' [-Wunused-variable]
    6 |  int k=0;
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1042 满足条件的3位数
语言
C++
递交时间
2021-12-11 09:17:07
评测时间
2021-12-11 09:17:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes