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