foo.c: In function 'main':
foo.c:5:5: warning: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | sacnf("%d",&n);
| ^~~~~
| scanf
foo.c:8:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d",&k);
| ^~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccz3qIxt.o: in function `main':
foo.c:(.text.startup+0x60): undefined reference to `sacnf'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务