0_0_22226906_14551.cpp:11:12: error: declaration of 'dir' as multidimensional array must have bounds for all dimensions except the first
int dir[][]={{,0},{-,0},{0,},{0,-}};
^
0_0_22226906_14551.cpp:11:16: error: expected primary-expression before ',' token
int dir[][]={{,0},{-,0},{0,},{0,-}};
^
0_0_22226906_14551.cpp:11:22: error: expected primary-expression before ',' token
int dir[][]={{,0},{-,0},{0,},{0,-}};
^
0_0_22226906_14551.cpp:11:35: error: expected primary-expression before '}' token
int dir[][]={{,0},{-,0},{0,},{0,-}};
^
0_0_22226906_14551.cpp: In function 'void bfs()':
0_0_22226906_14551.cpp:27:17: error: expected primary-expression before ';' token
head.turn=-;
^
0_0_22226906_14551.cpp:33:24: error: expected primary-expression before ';' token
for(int i=0;i<;i++)
^
0_0_22226906_14551.cpp:35:28: error: 'dir' was not declared in this scope
int xx=head.x+dir[i][0];
^
0_0_22226906_14551.cpp:36:35: error: expected primary-expression before ']' token
int yy=head.y+dir[i][];
^
0_0_22226906_14551.cpp:42:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
^
0_0_22226906_14551.cpp:42:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
^
0_0_22226906_14551.cpp:46:38: error: expected primary-expression before ';' token
visited[xx][yy]=;
^
0_0_22226906_14551.cpp:49:42: error: expected primary-expression before ';' token
tail.turn=head.turn+;
^
0_0_22226906_14551.cpp:58:31: error: expected primary-expression before ']' token
yy=yy+dir[i][];
^
0_0_22226906_14551.cpp:42:28: error: label 'xx' used but not defined
while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
^
0_0_22226906_14551.cpp:42:45: error: label 'yy' used but not defined
while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
^
0_0_22226906_14551.cpp: In function 'int main()':
0_0_22226906_14551.cpp:75:20: error: expected primary-expression before ';' token
for(int i=;i<=m;i++)
^
0_0_22226906_14551.cpp:78:24: error: expected primary-expression before ';' token
for(int j=;j<=n;j++)
^
|