foo.c: In function 'Init':
foo.c:5:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
5 | int n=strlen(s);
| ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 |
foo.c:5:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
5 | int n=strlen(s);
| ^~~~~~
foo.c:5:15: note: include '<string.h>' or provide a declaration of 'strlen'
foo.c: In function 'Output':
foo.c:13:28: error: expected ';' before '}' token
13 | {printf("%d ",d[i])}
| ^
| ;
foo.c: In function 'Add':
foo.c:40:15: error: 'i' undeclared (first use in this function)
40 | for(; i<n1; i++)
| ^
foo.c:40:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:53:1: warning: control reaches end of non-void function [-Wreturn-type]
53 | }
| ^
[Hydro](https://hydro.ac)提供评测服务