foo.c: In function 'main':
foo.c:9:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
9 | if(strcmp(a,b)==0)
| ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
1 | #include <stdio.h>
+++ |+#include <string.h>
2 |
foo.c:9:19: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
9 | if(strcmp(a,b)==0)
| ^
| |
| char
foo.c:9:19: note: expected 'const char *' but argument is of type 'char'
foo.c:9:21: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
9 | if(strcmp(a,b)==0)
| ^
| |
| char
foo.c:9:21: note: expected 'const char *' but argument is of type 'char'
[Hydro](https://hydro.ac)提供评测服务