foo.cc: In function 'int main()':
foo.cc:23:17: error: reference to 'map' is ambiguous
23 | map[i][ha]=1;
| ^~~
In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/map:61,
from stdc++.h:81:
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
foo.cc:3:18: note: 'int map [1005][1005]'
3 | int yao[105][11],map[1005][1005],d[1005],minn[1005];
| ^~~
foo.cc:31:16: error: reference to 'map' is ambiguous
31 | if(map[now][i])
| ^~~
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
foo.cc:3:18: note: 'int map [1005][1005]'
3 | int yao[105][11],map[1005][1005],d[1005],minn[1005];
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务