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 400.0 KiB
#3 Wrong Answer Read -nan, expect 4.861775. 1ms 384.0 KiB
#4 Wrong Answer Read -nan, expect 6.732004. 2ms 384.0 KiB
#5 Wrong Answer Read -nan, expect 3.084106. 2ms 384.0 KiB
#6 Wrong Answer Read -nan, expect 4.435132. 2ms 416.0 KiB
#7 Wrong Answer Read -nan, expect 6.269767. 2ms 404.0 KiB
#8 Wrong Answer Read -nan, expect 6.926823. 2ms 412.0 KiB
#9 Wrong Answer Read -nan, expect 1.955134. 1ms 408.0 KiB
#10 Wrong Answer Read -nan, expect 7.084789. 2ms 436.0 KiB

信息

递交者
类型
递交
题目
P1189 序列前N项和
语言
C++
递交时间
2021-04-26 17:59:33
评测时间
2021-04-26 17:59:33
评测机
分数
0
总耗时
21ms
峰值内存
436.0 KiB