记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:16: warning: unused variable 'n' [-Wunused-variable]
  double a[N],c,n;
                ^
/in/foo.cc:11:6: warning: iteration 279 invokes undefined behavior [-Waggressive-loop-optimizations]
  a[i]=a[i-1]+1.00/(i+1);
  ~~~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:10:16: note: within this loop
  for (int i=1;i<=N;i++)
               ~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 368.0 KiB
#2 Wrong Answer 2ms 344.0 KiB
#3 Wrong Answer 2ms 356.0 KiB
#4 Wrong Answer 3ms 384.0 KiB
#5 Wrong Answer 5ms 368.0 KiB
#6 Wrong Answer 3ms 352.0 KiB
#7 Wrong Answer 2ms 384.0 KiB
#8 Wrong Answer 3ms 340.0 KiB
#9 Wrong Answer 2ms 360.0 KiB
#10 Wrong Answer 2ms 344.0 KiB

信息

递交者
类型
递交
题目
mul
比赛
初二普及组模拟赛0914
语言
C++
递交时间
2018-09-15 10:02:47
评测时间
2018-09-15 10:02:47
评测机
分数
0
总耗时
32ms
峰值内存
384.0 KiB