foo.cc: In function 'int main()':
foo.cc:9:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
9 | gets(a);
| ~~~~^~~
In file included from cstdio:42:
/nix/store/ck17nf5q2m51d9jpkpsirx91s64vh202-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.cc:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(k = x; k < strlen(a); k++){
| ~~^~~~~~~~~~~
foo.cc:8:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
8 | int x, m, n, r, k;
| ^
/nix/store/dpxy5cr7cm0nch0qvq2qygs9jwnmhiy5-binutils-2.38/bin/ld: /tmp/cctKkuFJ.o: in function `main':
foo.cc:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务