Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:11: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |  cin>>a,b,c,d;
      |           ^
foo.cc:7:13: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |  cin>>a,b,c,d;
      |             ^
foo.cc:7:14: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |  cin>>a,b,c,d;
      |              ^
foo.cc:8:34: warning: 'b' is used uninitialized in this function [-Wuninitialized]
    8 |  cout<<setprecision(3)<<0.1*a+0.2*b+0.2*c+0.5*d;
      |                               ~~~^~
foo.cc:8:40: warning: 'c' is used uninitialized in this function [-Wuninitialized]
    8 |  cout<<setprecision(3)<<0.1*a+0.2*b+0.2*c+0.5*d;
      |                                     ~~~^~
foo.cc:8:46: warning: 'd' is used uninitialized in this function [-Wuninitialized]
    8 |  cout<<setprecision(3)<<0.1*a+0.2*b+0.2*c+0.5*d;
      |                                           ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer Read 5.5, expect 66. 3ms 384.0 KiB
#3 Wrong Answer Read 7.5, expect 89. 3ms 384.0 KiB
#4 Wrong Answer Read 7.7, expect 90.9. 4ms 384.0 KiB
#5 Wrong Answer Read 7.8, expect 78.5. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1011 求课程总评成绩
语言
C++
递交时间
2022-07-08 13:25:06
评测时间
2022-07-08 13:25:06
评测机
分数
20
总耗时
18ms
峰值内存
384.0 KiB