0_0_21588402_10013.cpp:27:27: error: stray '#' in program
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:27:33: error: stray '#' in program
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:34:83: error: stray '#' in program
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:34:87: error: stray '#' in program
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:34:89: error: stray '#' in program
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:35:30: error: stray '#' in program
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:36: error: stray '#' in program
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:56: error: stray '#' in program
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:62: error: stray '#' in program
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:44:35: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:44:41: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:44:61: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:44:67: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:44:88: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:44:94: error: stray '#' in program
else if(ma[b.x][b.y]>'A'&&ma[b.x][b.y]<'Z'&&ma[b.x][b.y]!='X')
^
0_0_21588402_10013.cpp:73:31: error: stray '#' in program
if(ma[i][k]=='*') {start_x=i; start_y=k;}
^
0_0_21588402_10013.cpp:73:37: error: stray '#' in program
if(ma[i][k]=='*') {start_x=i; start_y=k;}
^
0_0_21588402_10013.cpp:74:31: error: stray '#' in program
if(ma[i][k]=='X') {stop_x=i; stop_y=k;}
^
0_0_21588402_10013.cpp:74:37: error: stray '#' in program
if(ma[i][k]=='X') {stop_x=i; stop_y=k;}
^
0_0_21588402_10013.cpp:75:31: error: stray '#' in program
if(ma[i][k]=='b'||ma[i][k]=='B') mark[i][k]=0;
^
0_0_21588402_10013.cpp:75:37: error: stray '#' in program
if(ma[i][k]=='b'||ma[i][k]=='B') mark[i][k]=0;
^
0_0_21588402_10013.cpp:75:54: error: stray '#' in program
if(ma[i][k]=='b'||ma[i][k]=='B') mark[i][k]=0;
^
0_0_21588402_10013.cpp:75:60: error: stray '#' in program
if(ma[i][k]=='b'||ma[i][k]=='B') mark[i][k]=0;
^
0_0_21588402_10013.cpp:76:31: error: stray '#' in program
if(ma[i][k]=='y'||ma[i][k]=='Y') mark[i][k]=1;
^
0_0_21588402_10013.cpp:76:37: error: stray '#' in program
if(ma[i][k]=='y'||ma[i][k]=='Y') mark[i][k]=1;
^
0_0_21588402_10013.cpp:76:54: error: stray '#' in program
if(ma[i][k]=='y'||ma[i][k]=='Y') mark[i][k]=1;
^
0_0_21588402_10013.cpp:76:60: error: stray '#' in program
if(ma[i][k]=='y'||ma[i][k]=='Y') mark[i][k]=1;
^
0_0_21588402_10013.cpp:77:31: error: stray '#' in program
if(ma[i][k]=='r'||ma[i][k]=='R') mark[i][k]=2;
^
0_0_21588402_10013.cpp:77:37: error: stray '#' in program
if(ma[i][k]=='r'||ma[i][k]=='R') mark[i][k]=2;
^
0_0_21588402_10013.cpp:77:54: error: stray '#' in program
if(ma[i][k]=='r'||ma[i][k]=='R') mark[i][k]=2;
^
0_0_21588402_10013.cpp:77:60: error: stray '#' in program
if(ma[i][k]=='r'||ma[i][k]=='R') mark[i][k]=2;
^
0_0_21588402_10013.cpp:78:31: error: stray '#' in program
if(ma[i][k]=='g'||ma[i][k]=='G') mark[i][k]=3;
^
0_0_21588402_10013.cpp:78:37: error: stray '#' in program
if(ma[i][k]=='g'||ma[i][k]=='G') mark[i][k]=3;
^
0_0_21588402_10013.cpp:78:54: error: stray '#' in program
if(ma[i][k]=='g'||ma[i][k]=='G') mark[i][k]=3;
^
0_0_21588402_10013.cpp:78:60: error: stray '#' in program
if(ma[i][k]=='g'||ma[i][k]=='G') mark[i][k]=3;
^
0_0_21588402_10013.cpp: In function 'int bfs(int, int)':
0_0_21588402_10013.cpp:27:28: error: lvalue required as unary '&' operand
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:27:30: error: expected ')' before ';' token
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:27:31: error: 'X' was not declared in this scope
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:27:37: error: expected primary-expression before ')' token
if(ma[a.x][a.y]=='X')return a.step;
^
0_0_21588402_10013.cpp:34:84: error: lvalue required as unary '&' operand
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:34:86: error: expected ')' before ';' token
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:34:90: error: lvalue required as unary '&' operand
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:34:93: error: expected primary-expression before ')' token
if(b.x<0||b.x>=n||b.y<0||b.y>=m||vis[b.x][b.y][b.key]||ma[b.x][b.y]=='#')continue;
^
0_0_21588402_10013.cpp:35:31: error: lvalue required as unary '&' operand
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:33: error: expected ')' before ';' token
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:35: error: no match for 'operator&' (operand types are 'Node' and 'int')
if(ma[b.x][b.y]>'a'&&ma[b.x][b.y]<'z')
^
0_0_21588402_10013.cpp:35:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21588402_10013.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:75:3: note: constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)
operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:75:3: note: no known
|