记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:6:4: warning: statement with no effect [-Wunused-value]
  k1<=k2;
  ~~^~~~
/in/foo.c:7:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
  printf("");
         ^~
/in/foo.c:9:7: warning: statement with no effect [-Wunused-value]
  for(i>=k1;i<=k2;i++)
      ~^~~~
/in/foo.c:6:4: warning: 'k1' is used uninitialized in this function [-Wuninitialized]
  k1<=k2;
  ~~^~~~
/in/foo.c:6:4: warning: 'k2' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:16:2: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d",sum);
  ^~~~~~~~~~~~~~~~
/in/foo.c:9:19: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(i>=k1;i<=k2;i++)
                  ~^~
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 252.0 KiB
#2 Wrong Answer 0ms 232.0 KiB
#3 Wrong Answer 0ms 220.0 KiB
#4 Wrong Answer 0ms 248.0 KiB

信息

递交者
类型
递交
题目
1-2 斐波那契数列的和
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-18 17:25:44
评测时间
2024-08-18 17:25:44
评测机
分数
0
总耗时
3ms
峰值内存
252.0 KiB