0_0_37585559_11764.c:6:1: error: unknown type name 'bool'
bool fun2(int i){
^
0_0_37585559_11764.c: In function 'fun2':
0_0_37585559_11764.c:7:2: error: unknown type name 'bool'
bool flag=true;
^
0_0_37585559_11764.c:7:12: error: 'true' undeclared (first use in this function)
bool flag=true;
^
0_0_37585559_11764.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
0_0_37585559_11764.c:11:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=2;j<sqrt(i)+1;j++){
^
0_0_37585559_11764.c:11:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_37585559_11764.c:13:10: error: 'false' undeclared (first use in this function)
flag=false;
^
0_0_37585559_11764.c: In function 'main':
0_0_37585559_11764.c:25:3: error: unknown type name 'bool'
bool flag=true;
^
0_0_37585559_11764.c:25:13: error: 'true' undeclared (first use in this function)
bool flag=true;
^
0_0_37585559_11764.c:26:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=x;i<=y;i++){
^
0_0_37585559_11764.c:29:10: error: 'false' undeclared (first use in this function)
flag=false;
^
|