记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:8:11: warning: implicit declaration of function 'Fib' [-Wimplicit-function-declaration]
   sum=sum+Fib(i);
           ^~~
/in/foo.c:5:17: warning: unused variable 'm' [-Wunused-variable]
     int k1,k2,n,m,i,sum=0;
                 ^
/in/foo.c:5:15: warning: unused variable 'n' [-Wunused-variable]
     int k1,k2,n,m,i,sum=0;
               ^
/in/foo.c:8:6: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   sum=sum+Fib(i);
   ~~~^~~~~~~~~~~
/in/foo.c: In function 'Fib':
/in/foo.c:15:15: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int a=1, b=1,c;
               ^
# 状态 耗时 内存占用
#1 Accepted 1ms 188.0 KiB
#2 Accepted 1ms 188.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 1ms 184.0 KiB

信息

递交者
类型
递交
题目
1-2 斐波那契数列的和
比赛
课程赛事 2018/11/24
语言
C
递交时间
2018-11-24 19:25:01
评测时间
2018-11-24 19:25:01
评测机
分数
100
总耗时
4ms
峰值内存
204.0 KiB