记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:9: error: 'k1' undeclared (first use in this function)
  int a1=k1,a2=k2;
         ^~
/in/foo.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:15: error: 'k2' undeclared (first use in this function)
  int a1=k1,a2=k2;
               ^~
/in/foo.c:18:9: warning: too many arguments for format [-Wformat-extra-args]
  printf("%d%d\n",a1,n,sum+2);
         ^~~~~~~~
/in/foo.c:6:12: warning: unused variable 'flag' [-Wunused-variable]
  int sum=0,flag=0;
            ^~~~

信息

递交者
类型
递交
题目
1-2 斐波那契数列的和
比赛
中北 计算机2021级专业修读指导(2)
语言
C
递交时间
2021-12-07 19:15:25
评测时间
2021-12-07 19:15:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes