0_0_15970617_3545.cpp: In function 'void input()':
0_0_15970617_3545.cpp:36:1: error: reference to 'map' is ambiguous
map[i][j].c=getchar();
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:37:1: error: reference to 'map' is ambiguous
map[i][j].path=-1;
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp: In function 'bool isvalide(int, int)':
0_0_15970617_3545.cpp:43:24: error: reference to 'map' is ambiguous
if(x<1||x>n||y<1||y>m||map[x][y].c=='0')
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp: In function 'void BFS()':
0_0_15970617_3545.cpp:53:1: error: reference to 'map' is ambiguous
map[sx][sy].path=0;
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:54:1: error: reference to 'map' is ambiguous
map[sx][sy].cb=0;
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:55:4: error: reference to 'map' is ambiguous
t1=map[sx][sy];
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:71:4: error: reference to 'map' is ambiguous
if(map[tx][ty].path!=-1)
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:73:4: error: reference to 'map' is ambiguous
if(map[tx][ty].c!=t2.c)
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:75:4: error: reference to 'map' is ambiguous
if(map[tx][ty].cb<t2.cb+1||(map[tx][ty].cb==t2.cb+1&&map[tx][ty].path<=t2.path+1))
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:75:29: error: reference to 'map' is ambiguous
if(map[tx][ty].cb<t2.cb+1||(map[tx][ty].cb==t2.cb+1&&map[tx][ty].path<=t2.path+1))
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:75:54: error: reference to 'map' is ambiguous
if(map[tx][ty].cb<t2.cb+1||(map[tx][ty].cb==t2.cb+1&&map[tx][ty].path<=t2.path+1))
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:77:1: error: reference to 'map' is ambiguous
map[tx][ty].cb=t2.cb+1;
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:78:1: error: reference to 'map' is ambiguous
map[tx][ty].path=t2.path+1;
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:82:4: error: reference to 'map' is ambiguous
if(map[tx][ty].cb<t2.cb||(map[tx][ty].cb==t2.cb&&map[tx][ty].path<=t2.path+1))
^
0_0_15970617_3545.cpp:26:5: note: candidates are: Map map [1001][1001]
Map map[N][N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_15970617_3545.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^
0_0_15970617_3545.cpp:82:27: error: reference to 'map' is ambiguous
if(map[tx][ty].cb<t2.cb||(map[tx][ty].cb==t2.cb&&map[tx][ty
|