0_0_19929284_12708.c: In function 'dfs':
0_0_19929284_12708.c:39:2: error: unknown type name 'bool'
bool flag[N] = {0};
^
0_0_19929284_12708.c:41:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = head[u]; i != -1; i = p[i].next) {
^
0_0_19929284_12708.c:41:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_19929284_12708.c:43:20: error: 'true' undeclared (first use in this function)
flag[color[v]] = true;
^
0_0_19929284_12708.c:43:20: note: each undeclared identifier is reported only once for each function it appears in
0_0_19929284_12708.c:46:11: error: redefinition of 'i'
for (int i = 1; i <= k; i++) {
^
0_0_19929284_12708.c:41:11: note: previous definition of 'i' was here
for (int i = head[u]; i != -1; i = p[i].next) {
^
0_0_19929284_12708.c:46:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i <= k; i++) {
^
0_0_19929284_12708.c:53:11: error: redefinition of 'i'
for (int i = head[u]; i != -1; i = p[i].next) {
^
0_0_19929284_12708.c:46:11: note: previous definition of 'i' was here
for (int i = 1; i <= k; i++) {
^
0_0_19929284_12708.c:53:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = head[u]; i != -1; i = p[i].next) {
^
0_0_19929284_12708.c: In function 'main':
0_0_19929284_12708.c:64:2: error: expected expression before '/' token
///
^
0_0_19929284_12708.c:68:2: error: expected expression before '/' token
///
^
0_0_19929284_12708.c:92:1: error: expected declaration or statement at end of input
}
^
|