/in/foo.cc: In function 'int main()':
/in/foo.cc:17:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
scanf("%d%d",&r,&c);
~~ ^
/in/foo.cc:17:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=]
/in/foo.cc:50:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=head;i<=tail;i++)
^~~
/in/foo.cc:51:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
a[team[i].x][team[i].y]=0;break;}//若当前步数已达到目标,则队列中剩余的点都是可走的点,将其导出
^~~~~
/in/foo.cc:57:36: warning: array subscript has type 'char' [-Wchar-subscripts]
while (xx>1&&a[xx-1][yy]!=-1&&flag[xx-1][yy][team[head].bs]==false) //未到达边界且可走且不与前面重复,入队,下同
^
/in/foo.cc:57:56: warning: array subscript has type 'char' [-Wchar-subscripts]
while (xx>1&&a[xx-1][yy]!=-1&&flag[xx-1][yy][team[head].bs]==false) //未到达边界且可走且不与前面重复,入队,下同
^
/in/foo.cc:64:24: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;//标记当前步数已走过
^
/in/foo.cc:64:28: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;//标记当前步数已走过
^
/in/foo.cc:67:36: warning: array subscript has type 'char' [-Wchar-subscripts]
while (xx<r&&a[xx+1][yy]!=-1&&flag[xx+1][yy][team[head].bs]==false)
^
/in/foo.cc:67:56: warning: array subscript has type 'char' [-Wchar-subscripts]
while (xx<r&&a[xx+1][yy]!=-1&&flag[xx+1][yy][team[head].bs]==false)
^
/in/foo.cc:74:24: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^
/in/foo.cc:74:28: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^
/in/foo.cc:77:30: warning: array subscript has type 'char' [-Wchar-subscripts]
while (yy>1&&a[xx][yy-1]!=-1&&flag[xx][yy-1][team[head].bs]==false)
^
/in/foo.cc:77:50: warning: array subscript has type 'char' [-Wchar-subscripts]
while (yy>1&&a[xx][yy-1]!=-1&&flag[xx][yy-1][team[head].bs]==false)
^
/in/foo.cc:84:24: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^
/in/foo.cc:84:28: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^
/in/foo.cc:87:30: warning: array subscript has type 'char' [-Wchar-subscripts]
while (yy<c&&a[xx][yy+1]!=-1&&flag[xx][yy+1][team[head].bs]==false)
^
/in/foo.cc:87:50: warning: array subscript has type 'char' [-Wchar-subscripts]
while (yy<c&&a[xx][yy+1]!=-1&&flag[xx][yy+1][team[head].bs]==false)
^
/in/foo.cc:94:24: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^
/in/foo.cc:94:28: warning: array subscript has type 'char' [-Wchar-subscripts]
flag[xx][yy][team[head].bs]=true;
^