记录详情

Compile Error

/in/foo.c:3:1: error: unknown type name 'bool'
 bool PrimeCount(int x)
 ^~~~
/in/foo.c: In function 'PrimeCount':
/in/foo.c:8:11: error: 'false' undeclared (first use in this function)
    return false;
           ^~~~~
/in/foo.c:8:11: 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: In function 'main':
/in/foo.c:29:6: error: expected ')' before 'num1'
      num1++;
      ^~~~
/in/foo.c:34:1: error: expected expression before '}' token
 }
 ^
/in/foo.c:34:1: error: expected declaration or statement at end of input
/in/foo.c:25:13: warning: unused variable 'num2' [-Wunused-variable]
  int num1=0,num2=0;
             ^~~~
/in/foo.c:25:6: warning: unused variable 'num1' [-Wunused-variable]
  int num1=0,num2=0;
      ^~~~
/in/foo.c: In function 'PrimeCount':
/in/foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
A9-1 数组中的素数个数
语言
C
递交时间
2022-01-16 11:15:47
评测时间
2022-01-16 11:15:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes