记录详情

Compile Error

foo.c: In function 'main':
foo.c:12:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   12 |         scanf_s("%d", &i);
      |         ^~~~~~~
      |         scanf
foo.c:11:13: warning: unused variable 'n' [-Wunused-variable]
   11 |         int n,i;
      |             ^
/nix/store/dpxy5cr7cm0nch0qvq2qygs9jwnmhiy5-binutils-2.38/bin/ld: /tmp/ccQ4tUKf.o: in function `main':
foo.c:(.text.startup+0x13): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A2-3 循环结构入门:斐波拉契数列的和
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 17:49:25
评测时间
2022-08-15 17:49:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes