/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:8:2: error: reference to 'map' is ambiguous
map[head+1]=0;
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:14:7: error: reference to 'map' is ambiguous
if(map[tx]==-1){
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:17:5: error: reference to 'map' is ambiguous
map[tx]=map[que[head]]+1;
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:17:13: error: reference to 'map' is ambiguous
map[tx]=map[que[head]]+1;
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:23:9: error: reference to 'map' is ambiguous
memset(map,-1,sizeof(map));
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:23:23: error: reference to 'map' is ambiguous
memset(map,-1,sizeof(map));
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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:26:8: error: reference to 'map' is ambiguous
cout<<map[t];
^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
int s,t,map[maxn*3],que[maxn];
^~~
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
^~~