记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:5: error: unknown type name 'bool'
     bool trees[10001];
     ^~~~
/in/foo.c:7:20: error: 'true' undeclared (first use in this function)
         trees[i] = true;
                    ^~~~
/in/foo.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:13:24: error: 'false' undeclared (first use in this function)
             trees[j] = false;
                        ^~~~~
/in/foo.c:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(i = 0;i <= L; i++)
     ^~~
/in/foo.c:18:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         printf("%d\n", count);
         ^~~~~~

信息

递交者
类型
递交
题目
P1007 校门外的树
语言
C
递交时间
2023-08-23 15:53:40
评测时间
2023-08-23 15:53:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes