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:14:18: error: expected ')' before ';' token
14 | {printf("%d",d[i];}
| ~ ^
| )
foo.c:14:19: error: expected ';' before '}' token
14 | {printf("%d",d[i];}
| ^
| ;
[Hydro](https://hydro.ac)提供评测服务