Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:18: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>a,b,c;
      |                  ^
foo.cc:6:19: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>a,b,c;
      |                   ^
foo.cc:10:14: warning: 'c' is used uninitialized [-Wuninitialized]
   10 |         if(ge*ge*ge+shi*shi*shi+bai*bai*bai==a*100+b*10+c)
      |            ~~^~~
foo.cc:5:17: note: 'c' was declared here
    5 |         int a,b,c;
      |                 ^
foo.cc:10:24: warning: 'b' is used uninitialized [-Wuninitialized]
   10 |         if(ge*ge*ge+shi*shi*shi+bai*bai*bai==a*100+b*10+c)
      |                     ~~~^~~~
foo.cc:5:15: note: 'b' was declared here
    5 |         int a,b,c;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read No, expect Yes. 4ms 412.0 KiB
#2 Wrong Answer Read No, expect Yes. 3ms 412.0 KiB
#3 Wrong Answer Read No, expect Yes. 4ms 284.0 KiB
#4 Wrong Answer Read No, expect Yes. 4ms 412.0 KiB
#5 Accepted 3ms 284.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 4ms 412.0 KiB
#8 Accepted 5ms 284.0 KiB
#9 Accepted 3ms 412.0 KiB
#10 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1007 水仙花数
语言
C++
递交时间
2023-11-03 22:50:05
评测时间
2023-11-03 22:50:05
评测机
分数
60
总耗时
41ms
峰值内存
412.0 KiB