Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:45: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized]
   19 |         cout<<fixed<<setprecision(2)<<(total-smax-smin)/(cnt-2);
      |                                        ~~~~~^~~~~
foo.cc:7:23: note: 'total' was declared here
    7 |         double score, total, cnt=0;
      |                       ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 4ms 332.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Wrong Answer Read -1.00, expect 0. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1744 计分器
语言
C++
递交时间
2023-09-21 15:01:46
评测时间
2023-09-21 15:01:51
评测机
分数
80
总耗时
22ms
峰值内存
412.0 KiB