0_0_14703739_1524.c:7:5: error: variably modified 'matching' at file scope
int matching[maxn];
^
0_0_14703739_1524.c:8:5: error: variably modified 'head' at file scope
int head[maxm];
^
0_0_14703739_1524.c:9:5: error: variably modified 'next' at file scope
int next[maxn];
^
0_0_14703739_1524.c:10:5: error: variably modified 'p' at file scope
int p[maxm];
^
0_0_14703739_1524.c:13:1: error: unknown type name 'bool'
bool visit[maxn] = { false };
^
0_0_14703739_1524.c:13:6: error: variably modified 'visit' at file scope
bool visit[maxn] = { false };
^
0_0_14703739_1524.c:13:22: error: 'false' undeclared here (not in a function)
bool visit[maxn] = { false };
^
0_0_14703739_1524.c:22:1: error: unknown type name 'bool'
bool dfs( const int v ){
^
0_0_14703739_1524.c: In function 'dfs':
0_0_14703739_1524.c:23:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for( int i = head[v] ; i ; i = next[i] ){
^
0_0_14703739_1524.c:23:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_14703739_1524.c:26:15: error: 'true' undeclared (first use in this function)
visit[u] = true;
^
0_0_14703739_1524.c:26:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_14703739_1524.c: In function 'main':
0_0_14703739_1524.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_14703739_1524.c:53:11: error: redefinition of 'i'
for( int i = 1 ; i <= n ; ++i ){
^
0_0_14703739_1524.c:46:11: note: previous definition of 'i' was here
for( int i = 1 ; i <=k ; ++i ){
^
0_0_14703739_1524.c:53:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for( int i = 1 ; i <= n ; ++i ){
^
0_0_14703739_1524.c:56:15: error: 'true' undeclared (first use in this function)
visit[i] = true;
^
|