记录详情

Accepted

/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 Accepted 3ms 380.0 KiB
#2 Accepted 6ms 364.0 KiB
#3 Accepted 6ms 352.0 KiB
#4 Accepted 16ms 376.0 KiB
#5 Accepted 2ms 368.0 KiB
#6 Accepted 2ms 360.0 KiB
#7 Accepted 3ms 372.0 KiB
#8 Accepted 2ms 360.0 KiB
#9 Accepted 2ms 360.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

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