foo.c: In function 'main':
foo.c:11:9: warning: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
11 | printf_s("请输入需要转换的正整数:");
| ^~~~~~~~
| printf
foo.c:12:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
12 | scanf_s("%d", &t);
| ^~~~~~~
| scanf
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccZVQwPt.o: in function `main':
foo.c:(.text.startup+0x29): undefined reference to `printf_s'
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: foo.c:(.text.startup+0x3a): undefined reference to `scanf_s'
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: foo.c:(.text.startup+0x90): undefined reference to `printf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务