/in/foo.c:3:1: error: unknown type name 'bool'
bool ss(int x)
^~~~
/in/foo.c: In function 'ss':
/in/foo.c:5:23: error: 'false' undeclared (first use in this function)
if(x < 2) return false;
^~~~~
/in/foo.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i = 2; i * i <= x; i++)
^~~
/in/foo.c:9:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return true;
^~~~~~
/in/foo.c:9:9: error: 'true' undeclared (first use in this function)
return true;
^~~~
/in/foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^