0_0_36440230_8256.c:4:1: error: unknown type name 'bool'
bool bflag,arr[N];
^
0_0_36440230_8256.c:4:12: error: variably modified 'arr' at file scope
bool bflag,arr[N];
^
0_0_36440230_8256.c: In function 'main':
0_0_36440230_8256.c:8:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 1; i <= n;i ++){
^
0_0_36440230_8256.c:8:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_36440230_8256.c:9:11: error: 'false' undeclared (first use in this function)
bflag = false;
^
0_0_36440230_8256.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
0_0_36440230_8256.c:12:32: error: 'true' undeclared (first use in this function)
if( x == a ) a = b, bflag = true;
^
0_0_36440230_8256.c:14:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j = b+1; j <= n; j++)
^
|