0_0_21590866_16124.cpp:79:43: error: stray '#' in program
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:79:49: error: stray '#' in program
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:57: error: stray '#' in program
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:63: error: stray '#' in program
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:145:31: error: stray '#' in program
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:145:37: error: stray '#' in program
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:147:37: error: stray '#' in program
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:147:43: error: stray '#' in program
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:149:37: error: stray '#' in program
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp:149:43: error: stray '#' in program
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp: In function 'void bfs()':
0_0_21590866_16124.cpp:79:44: error: lvalue required as unary '&' operand
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:79:46: error: expected ')' before ';' token
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:79:50: error: invalid operands of types 'const int [4]' and 'int' to binary 'operator&'
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:79:53: error: expected primary-expression before '||' token
if(a<1||b<1||a>n||b>m||mp[a][b]=='X'||vis[a][b]||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:58: error: lvalue required as unary '&' operand
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:60: error: expected ')' before ';' token
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:64: error: invalid operands of types 'const int [4]' and 'int' to binary 'operator&'
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp:116:67: error: expected primary-expression before '||' token
if(!a||!b||a>n||b>m||vis2[a][b]||mp[a][b]=='X'||ghost(a,b)<=step+1){
^
0_0_21590866_16124.cpp: In function 'int main()':
0_0_21590866_16124.cpp:145:32: error: lvalue required as unary '&' operand
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:145:34: error: expected ')' before ';' token
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:145:35: error: 'M' was not declared in this scope
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:145:41: error: expected primary-expression before ')' token
if(mp[i][j]=='M'){
^
0_0_21590866_16124.cpp:147:18: error: 'else' without a previous 'if'
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:147:38: error: lvalue required as unary '&' operand
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:147:40: error: expected ')' before ';' token
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:147:41: error: 'G' was not declared in this scope
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:147:47: error: expected primary-expression before ')' token
}else if(mp[i][j]=='G'){
^
0_0_21590866_16124.cpp:149:18: error: 'else' without a previous 'if'
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp:149:38: error: lvalue required as unary '&' operand
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp:149:40: error: expected ')' before ';' token
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp:149:41: error: 'Z' was not declared in this scope
}else if(mp[i][j]=='Z'){
^
0_0_21590866_16124.cpp:149:47: error: expected primary-expression before ')' token
}else if(mp[i][j]=='Z'){
^
|