Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:21: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1lf",p);       
                     ^
foo.cc:7:12: warning: 'a' is used uninitialized in this function [-Wuninitialized]
     p = (a + b + c)/3;
          ~~^~~
foo.cc:7:12: warning: 'b' is used uninitialized in this function [-Wuninitialized]
foo.cc:7:16: warning: 'c' is used uninitialized in this function [-Wuninitialized]
     p = (a + b + c)/3;
         ~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0.0, expect 7.7. 1ms 384.0 KiB
#2 Wrong Answer Read 0.0, expect 7.3. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1007 求平均值
语言
C++
递交时间
2021-11-18 22:00:48
评测时间
2021-11-18 22:01:09
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB