Compile Error

foo.cc: In function 'int main()':
foo.cc:6:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    6 |   for(int j=0;j<=33;j++)
      |   ^~~
foo.cc:8:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    8 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |    ^~
foo.cc:7:8: warning: unused variable 'k' [-Wunused-variable]
    7 |    int k=100-i-j;
      |        ^
foo.cc:8:7: error: 'i' was not declared in this scope
    8 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |       ^
foo.cc:8:9: error: 'j' was not declared in this scope
    8 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |         ^
foo.cc:8:11: error: 'k' was not declared in this scope
    8 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |           ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2027 百钱买百鸡
语言
C++
递交时间
2021-12-25 11:15:04
评测时间
2021-12-25 11:15:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes