/in/foo.cc: In function 'void DFS(int, int, int)':
/in/foo.cc:11:9: error: reference to 'map' is ambiguous
if (map[x][y] <= step)
^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
int n, m, map[25][25];
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
/in/foo.cc:13:5: error: reference to 'map' is ambiguous
map[x][y] = step;
^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
int n, m, map[25][25];
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:17: error: reference to 'map' is ambiguous
map[i][j] = inf;
^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
int n, m, map[25][25];
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
/in/foo.cc:41:24: error: reference to 'map' is ambiguous
if (minn > map[n - 1][i])
^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
int n, m, map[25][25];
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
/in/foo.cc:42:24: error: reference to 'map' is ambiguous
minn = map[n - 1][i];
^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
int n, m, map[25][25];
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~