foo.cc: In function 'int main()':
foo.cc:7:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
7 | gets(b);gets(c);
| ~~~~^~~
In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/cstdio:42,
from stdc++.h:46:
/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__;
| ^~~~
foo.cc:7:21: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
7 | gets(b);gets(c);
| ~~~~^~~
/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__;
| ^~~~
foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<strlen(b);i++)
| ~^~~~~~~~~~
foo.cc:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i=0;i<strlen(c);i++)
| ~^~~~~~~~~~
foo.cc:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i=0;i<strlen(b);i++)
| ~^~~~~~~~~~
foo.cc:6:13: warning: unused variable 's' [-Wunused-variable]
6 | int s=0,s1=0;
| ^
foo.cc:6:17: warning: unused variable 's1' [-Wunused-variable]
6 | int s=0,s1=0;
| ^~
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccQjsGj0.o: in function `main':
foo.cc:(.text.startup+0x11): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务