Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:14: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |   cin>>a ,b ,c ;
      |              ^
foo.cc:6:16: 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 [-Wuninitialized]
    7 |   d=a*0.2+b*0.2+c*0.6;
      |           ^
foo.cc:5:11: note: 'b' was declared here
    5 |   float a,b,c,d;
      |           ^
foo.cc:7:17: warning: 'c' is used uninitialized [-Wuninitialized]
    7 |   d=a*0.2+b*0.2+c*0.6;
      |                 ^
foo.cc:5:13: note: 'c' was declared here
    5 |   float a,b,c,d;
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 15, expect 88. 4ms 412.0 KiB
#2 Wrong Answer Read 16.4, expect 94.6. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1004 求课程的综合成绩。
语言
C++
递交时间
2023-11-03 19:23:05
评测时间
2023-11-03 19:23:05
评测机
分数
0
总耗时
9ms
峰值内存
412.0 KiB