foo.c: In function 'main':
foo.c:6:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
6 | gets(str1);
| ^~~~
foo.c:10:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
10 | printf("%c",str1[i]);
| ^~~~~~
foo.c:10:9: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
1 | #include<string.h>
+++ |+#include <stdio.h>
2 | int main()
foo.c:14:9: warning: incompatible implicit declaration of built-in function 'printf'
14 | printf("%c",str2[i]);
| ^~~~~~
foo.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/ccQMnE1l.o: in function `main':
foo.c:(.text.startup+0x4c): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务