foo.c:7:1: error: unknown type name 'bool'
bool z[200]={0},adj[200][201];
^
foo.c: In function 'dfs':
foo.c:12:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i=1;i<=count;i++) printf("%c",ans[i]);
^
foo.c:12:3: note: use option -std=c99 or -std=gnu99 to compile your code
foo.c:16:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i=1;i<=count;i++)
^
foo.c:20:4: error: 'for' loop initial declarations are only allowed in C99 mode
for(int j=1;j<=count;j++)
^
foo.c:25:12: error: redefinition of 'j'
for(int j=1;j<=count;j++)
^
foo.c:20:12: note: previous definition of 'j' was here
for(int j=1;j<=count;j++)
^
foo.c:25:4: error: 'for' loop initial declarations are only allowed in C99 mode
for(int j=1;j<=count;j++)
^
foo.c: In function 'Make_map':
foo.c:34:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i='A';i<='Z';i++)
^
foo.c:39:4: error: 'for' loop initial declarations are only allowed in C99 mode
for(int j=up[i];j<=down[i];j++)
^
foo.c:41:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[j][left[i]]!=i) adj[ a[j][left[i]] ][i]=true;
^
foo.c:41:50: error: 'true' undeclared (first use in this function)
if(a[j][left[i]]!=i) adj[ a[j][left[i]] ][i]=true;
^
foo.c:41:50: note: each undeclared identifier is reported only once for each function it appears in
foo.c:42:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[j][right[i]!=i]) adj[ a[j][right[i]] ][i]=true;
^
foo.c:44:4: error: 'for' loop initial declarations are only allowed in C99 mode
for(int k=left[i];k<=right[i];k++)
^
foo.c:46:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[up[i]][k]!=i) adj[ a[up[i]][k] ][i]=true;
^
foo.c:47:5: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[down[i]][k]!=i) adj[ a[down[i]][k] ][i]=true;
^
foo.c:50:10: error: redefinition of 'i'
for(int i='A';i<='Z';i++) adj[i][i]=false;
^
foo.c:34:10: note: previous definition of 'i' was here
for(int i='A';i<='Z';i++)
^
foo.c:50:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i='A';i<='Z';i++) adj[i][i]=false;
^
foo.c:50:38: error: 'false' undeclared (first use in this function)
for(int i='A';i<='Z';i++) adj[i][i]=false;
^
foo.c:51:10: error: redefinition of 'i'
for(int i=1;i<=count;i++)
^
foo.c:50:10: note: previous definition of 'i' was here
for(int i='A';i<='Z';i++) adj[i][i]=false;
^
foo.c:51:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i=1;i<=count;i++)
^
foo.c:52:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int j=1;j<=count;j++)
^
foo.c: In function 'main':
foo.c:58:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i=0;i<=199;i++){up[i]=left[i]=0xFFF;down[i]=right[i]=-1;}
^
foo.c:61:10: error: redefinition of 'i'
for(int i=1;i<=n;i++)
^
foo.c:58:10: note: previous definition of 'i' was here
for(int i=0;i<=199;i++){up[i]=left[i]=0xFFF;down[i]=right[i]=-1;}
^
foo.c:61:2: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i=1;i<=n;i++)
^
foo.c:63:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int j=1;j<=m;j++)
^
foo.c:67:4: warning: array subscript has type 'char' [-Wchar-subscripts]
z[a[i][j]]=true;
^
foo.c:67:15: error: 'true' undeclared (first use in this function)
z[a[i][j]]=true;
^
foo.c:68:4: warning: array subscript has type 'char' [-Wchar-subscripts]
if(i<up[a[i][j]]) up[a[i][j]]=i;
^
foo.c:68:4: warning: array subscript has type 'char' [-Wchar-subscripts]
foo.c:69:4: warning: array subscript has type 'char' [-Wc