记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:11:23: warning: 'sum' may be used uninitialized [-Wmaybe-uninitialized]
   11 |         double ave=sum/n;
      |                    ~~~^~
foo.cc:5:13: note: 'sum' was declared here
    5 |     int n,x,sum;
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Floating point exception 4ms 412.0 KiB
#2 Runtime Error Floating point exception 4ms 408.0 KiB
#3 Runtime Error Floating point exception 5ms 456.0 KiB
#4 Runtime Error Floating point exception 5ms 412.0 KiB
#5 Runtime Error Floating point exception 4ms 412.0 KiB
#6 Runtime Error Floating point exception 5ms 412.0 KiB
#7 Runtime Error Floating point exception 4ms 412.0 KiB
#8 Runtime Error Floating point exception 2ms 412.0 KiB
#9 Runtime Error Floating point exception 4ms 412.0 KiB
#10 Runtime Error Floating point exception 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1016 求n个数的平均数
语言
C++
递交时间
2023-11-10 17:29:36
评测时间
2023-11-10 17:29:36
评测机
分数
0
总耗时
44ms
峰值内存
456.0 KiB