foo.c: In function 'main':
foo.c:6:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
6 | scanf("%s",&s1);
| ~^ ~~~
| | |
| | char (*)[10000]
| char *
foo.c:7:17: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10000]' [-Wformat=]
7 | scanf("%s",&s2);
| ~^ ~~~
| | |
| | char (*)[10000]
| char *
foo.c:8:9: warning: implicit declaration of function 'Length' [-Wimplicit-function-declaration]
8 | Length(s1);
| ^~~~~~
foo.c: At top level:
foo.c:13:6: warning: conflicting types for 'Length'; have 'void(char *)'
13 | void Length(char s[])
| ^~~~~~
foo.c:8:9: note: previous implicit declaration of 'Length' with type 'void(char *)'
8 | Length(s1);
| ^~~~~~
foo.c: In function 'Length':
foo.c:16:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
16 | while(s[i]!=0)
| ^~~~~
foo.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
18 | printf("%d",i);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务