记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&d)
  ^~~~~
/in/foo.c:9:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:9:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:10:2: error: expected ';' before 'if'
  if(d<=2)
  ^~
/in/foo.c:7:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^
/in/foo.c:6:6: warning: unused variable 'c' [-Wunused-variable]
  int c;
      ^
/in/foo.c:5:6: warning: unused variable 'b' [-Wunused-variable]
  int b=1;
      ^
/in/foo.c:4:6: warning: unused variable 'a' [-Wunused-variable]
  int a=1;
      ^

信息

递交者
类型
递交
题目
P1013 兔子数列
语言
C
递交时间
2024-08-20 18:48:23
评测时间
2024-08-20 18:48:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes