记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'bool'
 bool isPrime(int x)
 ^~~~
/in/foo.c: In function 'isPrime':
/in/foo.c:5:16: error: 'false' undeclared (first use in this function)
         return false;
                ^~~~~
/in/foo.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:12: error: 'true' undeclared (first use in this function)
     return true;
            ^~~~
/in/foo.c: At top level:
/in/foo.c:13:1: error: unknown type name 'bool'
 bool isSuperPrime(int x)
 ^~~~
/in/foo.c: In function 'isSuperPrime':
/in/foo.c:17:24: error: 'false' undeclared (first use in this function)
         if(isPrime(x)==false)
                        ^~~~~
/in/foo.c:21:12: error: 'true' undeclared (first use in this function)
     return true;
            ^~~~
/in/foo.c: In function 'main':
/in/foo.c:29:25: error: 'true' undeclared (first use in this function)
     if(isSuperPrime(x)==true)
                         ^~~~
/in/foo.c: In function 'isPrime':
/in/foo.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.c: In function 'isSuperPrime':
/in/foo.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
A5-2 超级素数的个数
比赛
泰院2401程序设计基础作业赛第四场
语言
C
递交时间
2024-11-11 16:47:51
评测时间
2024-11-11 16:47:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes