/in/foo.cc: In function 'void prim()':
/in/foo.cc:15:13: error: reference to 'map' is ambiguous
dist[i] = map[1][i];
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:35:26: error: reference to 'map' is ambiguous
if (!used[j]&&dist[j]>map[k][j]&&map[k][j]>0)
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:35:37: error: reference to 'map' is ambiguous
if (!used[j]&&dist[j]>map[k][j]&&map[k][j]>0)
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:36:15: error: reference to 'map' is ambiguous
dist[j] = map[k][j];
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:45:16: error: reference to 'map' is ambiguous
scanf("%ld",&map[i][n+1]);
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:46:3: error: reference to 'map' is ambiguous
map[n+1][i] = map[i][n+1];
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:46:17: error: reference to 'map' is ambiguous
map[n+1][i] = map[i][n+1];
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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:50:17: error: reference to 'map' is ambiguous
scanf("%ld",&map[i][j]);
^~~
/in/foo.cc:7:6: note: candidates are: long int map [302][302]
long map[302][302];
^~~
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:2:
/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
^~~