foo.c: In function 'Back':
foo.c:5:24: warning: 'sizeof' on array function parameter 'str' will return size of 'char *' [-Wsizeof-array-argument]
5 | int size=sizeof(str);
| ^
foo.c:3:16: note: declared here
3 | void Back(char str[],char str1[])
| ~~~~~^~~~~
foo.c:11:25: warning: passing argument 1 of 'Back' makes pointer from integer without a cast [-Wint-conversion]
11 | Back(str[i+1]);
| ~~~^~~~~
| |
| char
foo.c:3:16: note: expected 'char *' but argument is of type 'char'
3 | void Back(char str[],char str1[])
| ~~~~~^~~~~
foo.c:11:17: error: too few arguments to function 'Back'
11 | Back(str[i+1]);
| ^~~~
foo.c:3:6: note: declared here
3 | void Back(char str[],char str1[])
| ^~~~
foo.c:10:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
10 | else
| ^~~~
foo.c:12:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
12 | printf("%c",str[i]);
| ^~~~~~
foo.c:5:13: warning: unused variable 'size' [-Wunused-variable]
5 | int size=sizeof(str);
| ^~~~
foo.c: In function 'main':
foo.c:18:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
18 | gets(str);
| ^~~~
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.c:23:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
23 | if(strcmp(str,str1)==0)
| ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 | char*gets(char*str);
[Hydro](https://hydro.ac)提供评测服务