1_734_3445_6763.c:8:1: error: unknown type name 'bool'
bool dfs(ll u)
^
1_734_3445_6763.c: In function 'dfs':
1_734_3445_6763.c:10:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(ll v=1;v<=n;v++)
^
1_734_3445_6763.c:10:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
1_734_3445_6763.c:13:14: error: 'true' undeclared (first use in this function)
vis[v]=true;
^
1_734_3445_6763.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
1_734_3445_6763.c:20:10: error: 'false' undeclared (first use in this function)
return false;
^
1_734_3445_6763.c: In function 'hungry':
1_734_3445_6763.c:26:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (ll i=1; i<=n; i++)
^
1_734_3445_6763.c: In function 'main':
1_734_3445_6763.c:44:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(ll i=s+1;i<=s+n;i++)
^
1_734_3445_6763.c:47:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(ll j=2;j<=sqrt(i);j++)
^
1_734_3445_6763.c:61:10: error: redefinition of 'i'
for(ll i=s+1;i<=s+n;i++)
^
1_734_3445_6763.c:44:10: note: previous definition of 'i' was here
for(ll i=s+1;i<=s+n;i++)
^
1_734_3445_6763.c:61:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(ll i=s+1;i<=s+n;i++)
^
1_734_3445_6763.c:62:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(ll j=1;j<=n;j++)
^
|