foo.c: In function 'main':
foo.c:8:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'unsigned char (*)[10001]' [-Wformat=]
scanf("%s %s",&tp,&tq);
~^ ~~~
foo.c:8:13: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'unsigned char (*)[10001]' [-Wformat=]
scanf("%s %s",&tp,&tq);
~^ ~~~
foo.c:10: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:10: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 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s",&tp,&tq);
^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务