记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:6:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&n);
  ^~~~~
/in/foo.c:6:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:6:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:7:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d",fib(n)/fib(n-2));
  ^~~~~~
/in/foo.c:7:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:7:2: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:4:10: warning: unused variable 'b' [-Wunused-variable]
  int a=1,b=1;
          ^
/in/foo.c:4:6: warning: unused variable 'a' [-Wunused-variable]
  int a=1,b=1;
      ^
/in/foo.c:7:2: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d",fib(n)/fib(n-2));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c: In function 'fib':
/in/foo.c:13:6: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int cnt;
      ^~~
# 状态 耗时 内存占用
#1 Accepted 0ms 128.0 KiB
#2 Wrong Answer 0ms 216.0 KiB

信息

递交者
类型
递交
题目
P1185 永生诅咒
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C
递交时间
2020-12-09 14:03:32
评测时间
2020-12-09 14:03:33
评测机
分数
50
总耗时
1ms
峰值内存
216.0 KiB