foo.c: In function 'main':
foo.c:5:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
5 | scanf("%s",a);
| ~^ ~
| | |
| | int
| char *
foo.c:6:12: warning: implicit declaration of function 'my_strchr' [-Wimplicit-function-declaration]
6 | char p=my_strchr(a,'vyou50forKFCcrazyThursday');
| ^~~~~~~~~
foo.c:6:24: warning: character constant too long for its type
6 | char p=my_strchr(a,'vyou50forKFCcrazyThursday');
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:7:9: warning: comparison between pointer and integer
7 | if(p==NULL)
| ^~
foo.c:5:5: warning: 'a' is used uninitialized [-Wuninitialized]
5 | scanf("%s",a);
| ^~~~~~~~~~~~~
foo.c:4:7: note: 'a' was declared here
4 | {char a;
| ^
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccuy38yq.o: in function `main':
foo.c:(.text.startup+0x1b): undefined reference to `my_strchr'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务