Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:18: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>a,b,c;
      |                  ^
foo.cc:6:19: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>a,b,c;
      |                   ^
foo.cc:7:19: warning: 'b' is used uninitialized [-Wuninitialized]
    7 |         float d=(a+b+c)/3;
      |                  ~^~
foo.cc:5:15: note: 'b' was declared here
    5 |         int a,b,c;
      |               ^
foo.cc:7:21: warning: 'c' is used uninitialized [-Wuninitialized]
    7 |         float d=(a+b+c)/3;
      |                 ~~~~^~~
foo.cc:5:17: note: 'c' was declared here
    5 |         int a,b,c;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 7.7. 4ms 412.0 KiB
#2 Wrong Answer Read 2, expect 7.3. 4ms 408.0 KiB

信息

递交者
类型
递交
题目
P1007 求平均值
语言
C++
递交时间
2023-10-27 16:16:50
评测时间
2023-10-27 16:16:50
评测机
分数
0
总耗时
8ms
峰值内存
412.0 KiB