/in/foo.cc: In function 'int main()':
/in/foo.cc:38:21: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
38 | gets(s);
| ~~~~^~~
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__;
| ^~~~
/in/foo.cc:31:21: warning: unused variable 'ch' [-Wunused-variable]
31 | char s[100],ch;
| ^~
/usr/bin/ld: /tmp/ccOidK1M.o: in function `main':
foo.cc:(.text.startup+0xb4): warning: the `gets' function is dangerous and should not be used.