/in/foo.cc: In function 'int main()':
/in/foo.cc:9:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
9 | gets(a+1);
| ~~~~^~~~~
In file included from /usr/include/c++/12/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/usr/bin/ld: /tmp/ccvu9wb5.o: in function `main':
foo.cc:(.text.startup+0x40): warning: the `gets' function is dangerous and should not be used.