foo.c: In function 'main':
foo.c:9:19: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
9 | for(int i=0;i<strlen(s);i++)
| ^~~~~~
foo.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
2 | #include<stdlib.h>
+++ |+#include <string.h>
3 |
foo.c:9:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
9 | for(int i=0;i<strlen(s);i++)
| ^~~~~~
foo.c:9:19: note: include '<string.h>' or provide a declaration of 'strlen'
foo.c:17:30: error: expected expression before 'break'
17 | min=i,a[i--],break;
| ^~~~~
foo.c:19:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
19 | for(int j=0;j<a[i];j++)
| ^~~
foo.c:20:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
20 | min*=10;min+=i;
| ^~~
foo.c:20:30: error: 'i' undeclared (first use in this function)
20 | min*=10;min+=i;
| ^
foo.c:20:30: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务