foo.c:3:1: error: unknown type name 'bool'
3 | bool f(int n,int a[],int ii,int m)
| ^~~~
foo.c: In function 'f':
foo.c:9:15: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
9 | else return false;
| ^~~~~
| fclose
foo.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:9: error: 'true' undeclared (first use in this function)
12 | return true;
| ^~~~
foo.c: In function 'main':
foo.c:28:23: error: 'true' undeclared (first use in this function)
28 | if(f(n,a,ii,a[j])==true)b[j]++;
| ^~~~
foo.c: In function 'f':
foo.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]
16 | }
| ^
foo.c: In function 'main':
foo.c:20:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
20 | int n;scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:22:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务