foo.c: In function 'main':
foo.c:22:3: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
22 | gets(s1);
| ^~~~
foo.c:26:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
26 | printf("%d %d\n", Diff(s1, a), Diff(s2, b));
| ^~~~~~
foo.c:26:3: 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 Length(char s[])
/usr/bin/ld: /tmp/ccivRnnh.o: in function `main':
foo.c:(.text.startup+0x48): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务