Compile Error
/in/foo.c:3:1: error: unknown type name 'bool' bool is_prime(int n) ^~~~ /in/foo.c: In function 'is_prime': /in/foo.c:5:23: error: 'false' undeclared (first use in this function) if(n < 2) return false; ^~~~~ /in/foo.c:5:23: note: each undeclared identifier is reported only once for each function it appears in /in/foo.c:9:9: error: 'true' undeclared (first use in this function) return true; ^~~~ /in/foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2024-11-19 22:13:59
- 评测时间
- 2024-11-19 22:13:59
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes