foo.c: In function 'main':
foo.c:7:1: warning: 'gets' is deprecated [-Wdeprecated-declarations]
7 | gets(a);
| ^~~~
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccpeWcmI.o: in function `main':
foo.c:(.text.startup+0x8): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务