记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:10:4: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
  { printf("%-8d",f[i]);
    ^~~~~~~~~~~~~~~~~~~
/in/foo.c:9:2: note: within this loop
  for(i=1;i<=m;i++)
  ^~~
/in/foo.c:8:7: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
   f[i]=f[i-1]+f[i-2];
   ~~~~^~~~~~~~~~~~~~
/in/foo.c:7:2: note: within this loop
  for(i=3;i<=m;i++)
  ^~~
/in/foo.c:8:4: warning: array subscript is above array bounds [-Warray-bounds]
   f[i]=f[i-1]+f[i-2];
   ~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 232.0 KiB
#2 Wrong Answer 1ms 232.0 KiB
#3 Wrong Answer 1ms 208.0 KiB
#4 Wrong Answer 1ms 212.0 KiB
#5 Wrong Answer 1ms 248.0 KiB

信息

递交者
类型
递交
题目
A2-2 循环结构入门:斐波拉契数列
比赛
中北 计算机2021级专业修读指导(1)
语言
C
递交时间
2021-11-30 19:05:51
评测时间
2021-11-30 19:05:51
评测机
分数
0
总耗时
5ms
峰值内存
248.0 KiB