0_0_18738708_12413.cpp: In function 'int judge(int, int)':
0_0_18738708_12413.cpp:12:46: error: reference to 'map' is ambiguous
if(x >= 0 && x < n && y >= 0 && y < m && map[x][y] != 1) return 1;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp: In function 'int bfs2(int, int, int, int, int, int)':
0_0_18738708_12413.cpp:20:5: error: reference to 'map' is ambiguous
map[pointx][pointy] = 0;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:21:5: error: reference to 'map' is ambiguous
map[x][y] = 2;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:32:41: error: reference to 'map' is ambiguous
if(judge(next.x, next.y) && map[next.x][next.y] != 2 && map[next.x][next.y] != 1 && !vis2[next.x][next.y]) {
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:32:69: error: reference to 'map' is ambiguous
if(judge(next.x, next.y) && map[next.x][next.y] != 2 && map[next.x][next.y] != 1 && !vis2[next.x][next.y]) {
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:34:21: error: reference to 'map' is ambiguous
map[pointx][pointy] = 2;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:35:21: error: reference to 'map' is ambiguous
map[x][y] = 0;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:43:5: error: reference to 'map' is ambiguous
map[pointx][pointy] = 2;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:44:5: error: reference to 'map' is ambiguous
map[x][y] = 0;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp: In function 'int bfs(int, int, int, int)':
0_0_18738708_12413.cpp:68:20: error: reference to 'map' is ambiguous
if(map[next.x][next.y] == 3) return next.step;
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp: In function 'int main()':
0_0_18738708_12413.cpp:88:24: error: reference to 'map' is ambiguous
cin >> map[i][j];
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:89:20: error: reference to 'map' is ambiguous
if(map[i][j] == 2) {
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
^
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_18738708_12413.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_18738708_12413.cpp:95:25: error: reference to 'map' is ambiguous
else if(map[i][j] == 4) {
^
0_0_18738708_12413.cpp:9:5: note: candidates are: int map [10][10]
int map[10][10], vis[10][10][10][10], dir[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
|