Wrong Answer

foo.cc: In function 'int main()':
foo.cc:12:4: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   a+=(double)1/(i*2-1);
   ~^~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read -nan, expect 1.000000. 1ms 384.0 KiB
#2 Wrong Answer Read -nan, expect 3.284342. 2ms 384.0 KiB
#3 Wrong Answer Read -nan, expect 4.861775. 1ms 384.0 KiB
#4 Wrong Answer Read -nan, expect 6.732004. 1ms 384.0 KiB
#5 Wrong Answer Read -nan, expect 3.084106. 2ms 384.0 KiB
#6 Wrong Answer Read -nan, expect 4.435132. 2ms 384.0 KiB
#7 Wrong Answer Read -nan, expect 6.269767. 2ms 384.0 KiB
#8 Wrong Answer Read -nan, expect 6.926823. 2ms 384.0 KiB
#9 Wrong Answer Read -nan, expect 1.955134. 1ms 384.0 KiB
#10 Wrong Answer Read -nan, expect 7.084789. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1189 序列前N项和
语言
C++
递交时间
2021-04-26 18:01:22
评测时间
2021-04-26 18:01:22
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB