foo.c: In function ‘sushu’:
foo.c:8:32: error: ‘false’ undeclared (first use in this function)
8 | return false;
| ^~~~~
foo.c:2:1: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
1 | #include <stdio.h>
+++ |+#include <stdbool.h>
2 |
foo.c:8:32: note: each undeclared identifier is reported only once for each function it appears in
8 | return false;
| ^~~~~
foo.c:10:32: error: ‘true’ undeclared (first use in this function)
10 | return true;
| ^~~~
foo.c:10:32: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
foo.c: In function ‘main’:
foo.c:18:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
18 | for (int i=2;i=i+1;i<=num)
| ^
foo.c:18:29: warning: statement with no effect [-Wunused-value]
18 | for (int i=2;i=i+1;i<=num)
| ~^~~~~
foo.c: In function ‘sushu’:
foo.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
12 | }
| ^