Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:18: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |         cin>>a,b,c,d;
      |                  ^
foo.cc:7:20: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |         cin>>a,b,c,d;
      |                    ^
foo.cc:7:21: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |         cin>>a,b,c,d;
      |                     ^
foo.cc:8:18: warning: 'b' is used uninitialized [-Wuninitialized]
    8 |         e=a*0.1+b*0.2+c*0.2+d*0.5;
      |                 ~^~~~
foo.cc:5:15: note: 'b' was declared here
    5 |         int a,b,c,d;
      |               ^
foo.cc:8:24: warning: 'c' is used uninitialized [-Wuninitialized]
    8 |         e=a*0.1+b*0.2+c*0.2+d*0.5;
      |                       ~^~~~
foo.cc:5:17: note: 'c' was declared here
    5 |         int a,b,c,d;
      |                 ^
foo.cc:8:30: warning: 'd' is used uninitialized [-Wuninitialized]
    8 |         e=a*0.1+b*0.2+c*0.2+d*0.5;
      |                             ~^~~~
foo.cc:5:19: note: 'd' was declared here
    5 |         int a,b,c,d;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 516.0 KiB
#2 Wrong Answer Read 5.5, expect 66. 4ms 412.0 KiB
#3 Wrong Answer Read 7.5, expect 89. 4ms 432.0 KiB
#4 Wrong Answer Read 7.7, expect 90.9. 4ms 516.0 KiB
#5 Wrong Answer Read 7.8, expect 78.5. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1029 求课程总评成绩
语言
C++
递交时间
2023-12-21 20:53:05
评测时间
2023-12-21 20:53:05
评测机
分数
20
总耗时
23ms
峰值内存
516.0 KiB