记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
5-7 玩整数
语言
C
递交时间
2023-11-28 16:47:35
评测时间
2023-11-28 16:47:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes