记录详情

Compile Error

foo.c:2:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool judge(int n)
 ^~~~
 _Bool
foo.c: In function 'judge':
foo.c:4:23: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
     if (n < 2) return false;
                       ^~~~~
                       fclose
foo.c:4:23: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:12: error: 'true' undeclared (first use in this function)
     return true;
            ^~~~
foo.c: In function 'main':
foo.c:13:30: warning: unused variable 'n' [-Wunused-variable]
     int y, a[10000] = { 0 }, n,ii=0;
                              ^
foo.c: In function 'judge':
foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.c: In function 'main':
foo.c:14:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &y);
     ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
5-5 统计素数因子
比赛
2021(四) 作业第一场:秀肌肉
语言
C
递交时间
2021-10-01 02:13:03
评测时间
2021-10-01 02:13:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes