0_0_39276441_24839.cpp: In function 'int main()':
0_0_39276441_24839.cpp:15:9: error: reference to 'map' is ambiguous
15 | map.clear(); // 清空map
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
from 0_0_39276441_24839.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39276441_24839.cpp:8:15: note: 'std::map<int, int> map'
8 | map<int, int> map;
| ^~~
0_0_39276441_24839.cpp:22:17: error: reference to 'map' is ambiguous
22 | map[num] ++; // 不用统计 map直接加入
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39276441_24839.cpp:8:15: note: 'std::map<int, int> map'
8 | map<int, int> map;
| ^~~
0_0_39276441_24839.cpp:26:21: error: reference to 'map' is ambiguous
26 | if (map[*it] == 1) {
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39276441_24839.cpp:8:15: note: 'std::map<int, int> map'
8 | map<int, int> map;
| ^~~
|