foo.c:2:1: error: unknown type name 'bool'; did you mean '_Bool'?
bool judge(int n)
^~~~
_Bool
foo.c: In function 'judge':
foo.c:4:23: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
if (n < 2) return false;
^~~~~
fclose
foo.c:4:23: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:12: error: 'true' undeclared (first use in this function)
return true;
^~~~
foo.c: In function 'main':
foo.c:13:30: warning: unused variable 'n' [-Wunused-variable]
int y, a[10000] = { 0 }, n,ii=0;
^
foo.c: In function 'judge':
foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.c: In function 'main':
foo.c:14:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &y);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务