foo.c: In function 'main':
foo.c:8:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(tp);
^~~~
In file included from /usr/include/stdio.h:862:0,
from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
gets (char *__str)
^~~~
foo.c:8:7: warning: pointer targets in passing argument 1 of 'gets' differ in signedness [-Wpointer-sign]
gets(tp);
^~
In file included from /usr/include/stdio.h:862:0,
from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: expected 'char *' but argument is of type 'unsigned char *'
gets (char *__str)
^~~~
foo.c:9:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(tq);
^~~~
In file included from /usr/include/stdio.h:862:0,
from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
gets (char *__str)
^~~~
foo.c:9:7: warning: pointer targets in passing argument 1 of 'gets' differ in signedness [-Wpointer-sign]
gets(tq);
^~
In file included from /usr/include/stdio.h:862:0,
from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: expected 'char *' but argument is of type 'unsigned char *'
gets (char *__str)
^~~~
foo.c:11:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
int lenp=strlen(tp),lenq=strlen(tq);
^~
In file included from foo.c:2:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
extern size_t strlen (const char *__s)
^~~~~~
foo.c:11:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
int lenp=strlen(tp),lenq=strlen(tq);
^~
In file included from foo.c:2:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
extern size_t strlen (const char *__s)
^~~~~~
foo.c:8:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
gets(tp);
^~~~~~~~
foo.c:9:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
gets(tq);
^~~~~~~~
/tmp/ccu6Me8E.o: In function `main':
foo.c:(.text.startup+0x4f): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务