记录详情

Compile Error

foo.c:4:1: error: unknown type name 'bool'
    4 | bool sushu(int n){if(n<=1)
      | ^~~~
foo.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
    2 | #include<math.h>
  +++ |+#include <stdbool.h>
    3 | 
foo.c: In function 'sushu':
foo.c:5:9: error: 'false' undeclared (first use in this function)
    5 | {return false;}
      |         ^~~~~
foo.c:5:9: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:55: error: 'true' undeclared (first use in this function)
    8 |                                           else{return true;}
      |                                                       ^~~~
foo.c:8:55: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
foo.c:10:34: warning: control reaches end of non-void function [-Wreturn-type]
   10 |                                  }
      |                                  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-2 素数专题:素数判断
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 09:23:56
评测时间
2022-08-15 09:23:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes