Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:11: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |  cin>>a,b,c;
      |           ^
foo.cc:6:12: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |  cin>>a,b,c;
      |            ^
foo.cc:7:11: warning: 'b' is used uninitialized in this function [-Wuninitialized]
    7 |  cout<<a+b*c<<endl;
      |          ~^~
foo.cc:7:11: warning: 'c' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 9. 2ms 512.0 KiB
#2 Wrong Answer Read 123, expect 456831. 2ms 384.0 KiB
#3 Wrong Answer Read -9999, expect -119988. 3ms 384.0 KiB
#4 Wrong Answer Read 586, expect 30250971. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P2311 1.3.2:计算(a+b)*c的值
比赛
202112初一阶段反馈赛
语言
C++
递交时间
2021-12-11 09:53:10
评测时间
2021-12-11 09:53:10
评测机
分数
0
总耗时
10ms
峰值内存
512.0 KiB