Main.c:3:1: error: unknown type name 'bool'
3 | bool isPrime(int n){
| ^~~~
Main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
1 | #include"stdio.h"
+++ |+#include <stdbool.h>
2 | int num[5000],z=0;
Main.c: In function 'isPrime':
Main.c:4:26: error: 'false' undeclared (first use in this function)
4 | if(n%2==0)return false;
| ^~~~~
Main.c:4:26: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
Main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
Main.c: In function 'main':
Main.c:11:18: error: expected ')' before 'and'
11 | if(n%2==0 and n!=0)num[z++]=2;
| ~ ^~~~
| )
Main.c:13:26: error: expected ')' before 'and'
13 | if(n%i==0 and isPrime(i)){
| ~ ^~~~
| )
Main.c: In function 'isPrime':
Main.c:7:1: warning: control reaches end of non-void function [-Wreturn-type]
7 | }
| ^