0_0_17381376_3913.c: In function 'dijkstra':
0_0_17381376_3913.c:62:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1; i<=n; ++i){
^
0_0_17381376_3913.c:62:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_17381376_3913.c:73:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[nd.u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: In function 'getsize':
0_0_17381376_3913.c:90:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: In function 'getcen':
0_0_17381376_3913.c:100:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: At top level:
0_0_17381376_3913.c:111:5: error: conflicting types for 'getcen'
int getcen(int u){
^
0_0_17381376_3913.c:98:6: note: previous definition of 'getcen' was here
void getcen(int u,int fa,int tot){
^
0_0_17381376_3913.c: In function 'getcen':
0_0_17381376_3913.c:114:5: error: too many arguments to function 'getcen'
getcen(u,u,size[u]);
^
0_0_17381376_3913.c:111:5: note: declared here
int getcen(int u){
^
0_0_17381376_3913.c: At top level:
0_0_17381376_3913.c:120:1: error: unknown type name 'bool'
bool tag[MAXN];
^
0_0_17381376_3913.c: In function 'conqur_dfs':
0_0_17381376_3913.c:133:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: In function 'conqur':
0_0_17381376_3913.c:141:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c:146:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=0; j<bn; ++j){
^
0_0_17381376_3913.c:165:17: error: redefinition of 'j'
for(int j=0; j<bn; ++j){
^
0_0_17381376_3913.c:146:17: note: previous definition of 'j' was here
for(int j=0; j<bn; ++j){
^
0_0_17381376_3913.c:165:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=0; j<bn; ++j){
^
0_0_17381376_3913.c:179:13: error: redefinition of 'i'
for(int i=0; i<an; ++i){
^
0_0_17381376_3913.c:141:13: note: previous definition of 'i' was here
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c:179:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0; i<an; ++i){
^
0_0_17381376_3913.c: In function 'divide':
0_0_17381376_3913.c:189:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: In function 'dfs':
0_0_17381376_3913.c:213:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=head[u]; i!=-1; i=edge[i].next){
^
0_0_17381376_3913.c: In function 'buildTree':
0_0_17381376_3913.c:226:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0; i<(m<<1); ++i){
^
0_0_17381376_3913.c:238:13: error: redefinition of 'i'
for(int i=0; i<cnt; ++i){
^
0_0_17381376_3913.c:226:13: note: previous definition of 'i' was here
for(int i=0; i<(m<<1); ++i){
^
0_0_17381376_3913.c:238:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0; i<cnt; ++i){
^
0_0_17381376_3913.c: In function 'main':
0_0_17381376_3913.c:262:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0; i<m; ++i){
^
|