Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:11:12: warning: ‘avg’ may be used uninitialized [-Wmaybe-uninitialized]
   11 |         avg/=n;
      |         ~~~^~~
foo.cc:5:16: note: ‘avg’ was declared here
    5 |         double avg ,mid;
      |                ^~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 13, expect 60. 4ms 768.0 KiB
#2 Wrong Answer Read 19, expect 95. 6ms 324.0 KiB
#3 Wrong Answer Read 17, expect 5. 7ms 768.0 KiB
#4 Wrong Answer Read 5, expect 90. 3ms 536.0 KiB
#5 Wrong Answer Read 7, expect 78. 2ms 552.0 KiB
#6 Wrong Answer Read 17, expect 97. 6ms 536.0 KiB
#7 Wrong Answer Read 2, expect 5. 2ms 536.0 KiB
#8 Wrong Answer Read 2, expect 1. 2ms 536.0 KiB
#9 Wrong Answer Read 3, expect 0. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P2519 求N个整数的平均数、众数和中位数
语言
C++
递交时间
2024-06-28 22:49:00
评测时间
2024-06-28 22:49:00
评测机
分数
0
总耗时
38ms
峰值内存
768.0 KiB