Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    7 |   for(int j=0;j<=33;j++)
      |   ^~~
foo.cc:9:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    9 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |    ^~
foo.cc:8:8: warning: unused variable 'k' [-Wunused-variable]
    8 |    int k=100-i-j;
      |        ^
foo.cc:9:8: warning: 'i' is used uninitialized in this function [-Wuninitialized]
    9 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |       ~^~
foo.cc:9:8: warning: 'j' is used uninitialized in this function [-Wuninitialized]
foo.cc:9:10: warning: 'k' is used uninitialized in this function [-Wuninitialized]
    9 |    if(i+j+k==100&&i*5+j*3+k/3==100)
      |       ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,3 > 4 18 78 > 8 11 81 > 12 2ms 384.0 KiB

信息

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