Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:16: warning: right operand of comma operator has no effect [-Wunused-value]
     cin>>ps,qz,zy,qm;
                ^~
foo.cc:8:19: warning: right operand of comma operator has no effect [-Wunused-value]
     cin>>ps,qz,zy,qm;
                   ^~
foo.cc:8:21: warning: right operand of comma operator has no effect [-Wunused-value]
     cin>>ps,qz,zy,qm;
                     ^
foo.cc:9:14: warning: 'qz' is used uninitialized in this function [-Wuninitialized]
  zh=ps*0.1+qz*0.2+zy*0.2+qm*0.5;
            ~~^~~~
foo.cc:9:21: warning: 'zy' is used uninitialized in this function [-Wuninitialized]
  zh=ps*0.1+qz*0.2+zy*0.2+qm*0.5;
                   ~~^~~~
foo.cc:9:28: warning: 'qm' is used uninitialized in this function [-Wuninitialized]
  zh=ps*0.1+qz*0.2+zy*0.2+qm*0.5;
                          ~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read 5.5, expect 66. 1ms 384.0 KiB
#3 Wrong Answer Read 7.5, expect 89. 1ms 384.0 KiB
#4 Wrong Answer Read 7.7, expect 90.9. 1ms 384.0 KiB
#5 Wrong Answer Read 7.8, expect 78.5. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1029 求课程总评成绩
语言
C++
递交时间
2021-11-15 21:24:06
评测时间
2021-11-15 21:24:06
评测机
分数
20
总耗时
8ms
峰值内存
384.0 KiB