记录详情

Runtime Error

foo.c: In function 'main':
foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |  scanf("%d", &n);
      |  ^~~~~
foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int fibo(int x);
foo.c:10:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%d ", fibo(a[i]))   ;
      |   ^~~~~~
foo.c:10:3: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:10:3: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   10 |   printf("%d ", fibo(a[i]))   ;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
foo.c: In function 'fibo':
foo.c:26:9: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |  return c;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Aborted 49ms 376.0 KiB
#2 Runtime Error Aborted 66ms 380.0 KiB
#3 Runtime Error Aborted 103ms 376.0 KiB
#4 Runtime Error Segmentation fault 1ms 256.0 KiB
#5 Runtime Error Aborted 164ms 376.0 KiB
#6 Runtime Error Aborted 195ms 380.0 KiB
#7 Runtime Error Aborted 383ms 376.0 KiB
#8 Runtime Error Segmentation fault 2ms 512.0 KiB
#9 Runtime Error Aborted 511ms 272.0 KiB
#10 Runtime Error Segmentation fault 1ms 256.0 KiB
#11 Runtime Error Segmentation fault 2ms 384.0 KiB
#12 Runtime Error Segmentation fault 1ms 256.0 KiB
#13 Runtime Error Segmentation fault 1ms 256.0 KiB
#14 Runtime Error Segmentation fault 2ms 256.0 KiB
#15 Runtime Error Segmentation fault 2ms 256.0 KiB
#16 Runtime Error Segmentation fault 2ms 256.0 KiB
#17 Runtime Error Segmentation fault 2ms 384.0 KiB
#18 Runtime Error Segmentation fault 1ms 256.0 KiB
#19 Runtime Error Segmentation fault 2ms 256.0 KiB
#20 Runtime Error Segmentation fault 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1364 6A 斐波那契数列
语言
C
递交时间
2022-05-30 10:39:15
评测时间
2022-05-30 10:39:15
评测机
分数
0
总耗时
1503ms
峰值内存
512.0 KiB