记录详情

Compile Error

/in/foo.c: In function 'dfs':
/in/foo.c:3:15: error: 'true' undeclared (first use in this function)
     used[u] = true;
               ^~~~
/in/foo.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'makeConnected':
/in/foo.c:19:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
     memset(edgesColSize, 0, sizeof(edgesColSize));
     ^~~~~~
/in/foo.c:19:5: warning: incompatible implicit declaration of built-in function 'memset'
/in/foo.c:19:5: note: include '<string.h>' or provide a declaration of 'memset'
/in/foo.c:25:20: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
         edges[i] = malloc(sizeof(int) * edgesColSize[i]);
                    ^~~~~~
/in/foo.c:25:20: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:25:20: note: include '<stdlib.h>' or provide a declaration of 'malloc'

信息

递交者
类型
递交
题目
P1006 粗心的接线员
语言
C
递交时间
2021-01-28 16:59:54
评测时间
2021-01-28 16:59:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes