Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15:12: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   15 |         sum=sum+(n+cnt-i)*cnt;
      |         ~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 31861, expect 434583. 1ms 256.0 KiB
#2 Wrong Answer Read 30187, expect 543803. 1ms 256.0 KiB
#3 Wrong Answer Read 31801, expect 586487. 1ms 256.0 KiB
#4 Wrong Answer Read 32365, expect 645125. 1ms 256.0 KiB
#5 Wrong Answer Read 46441, expect 737425. 1ms 256.0 KiB
#6 Wrong Answer Read 35633, expect 759550. 1ms 256.0 KiB
#7 Wrong Answer Read 50787, expect 826290. 1ms 256.0 KiB
#8 Wrong Answer Read 42608, expect 871907. 2ms 256.0 KiB
#9 Wrong Answer Read 51381, expect 937039. 2ms 256.0 KiB
#10 Wrong Answer Read 57121, expect 942820. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1985 金币
语言
C++
递交时间
2022-10-01 11:27:51
评测时间
2022-10-01 11:27:51
评测机
分数
0
总耗时
18ms
峰值内存
256.0 KiB