foo.c:3:1: error: unknown type name 'bool'
3 | bool PrimeCount(int x)
| ^~~~
foo.c: In function 'PrimeCount':
foo.c:8:11: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
8 | return false;
| ^~~~~
| fclose
foo.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:9: error: 'true' undeclared (first use in this function)
9 | return true;
| ^~~~
foo.c: In function 'main':
foo.c:28:27: error: expected ')' before 'num1'
28 | if(j<a&&PrimeCount(v[i])
| ~ ^
| )
29 | num1++;
| ~~~~
foo.c:34:1: error: expected expression before '}' token
34 | }
| ^
foo.c:34:1: error: expected declaration or statement at end of input
foo.c:25:13: warning: unused variable 'num2' [-Wunused-variable]
25 | int num1=0,num2=0;
| ^~~~
foo.c:25:6: warning: unused variable 'num1' [-Wunused-variable]
25 | int num1=0,num2=0;
| ^~~~
foo.c: In function 'PrimeCount':
foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
10 | }
| ^
foo.c: In function 'main':
foo.c:16:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d,%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:21:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&v[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:23:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d",&c[i-a]);
| ^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务