QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#558909 | #3449. Pizza Problems | 5un_xiaomivita_mbox | Compile Error | / | / | C++17 | 1.9kb | 2024-09-11 19:16:21 | 2024-09-11 19:16:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int get(std::string)’: answer.code:12:12: error: reference to ‘map’ is ambiguous 12 | if(map.count(s)) return map[s]; | ^~~ In file included from /usr/include/c++/13/map:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:152, from answer.code:1: /usr/include/c++/13/bits/stl_map.h:102:11: note: candidates are: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’ 102 | class map | ^~~ answer.code:6:28: note: ‘std::map<std::__cxx11::basic_string<char>, int> map’ 6 | std::map<std::string, int> map; | ^~~ answer.code:12:33: error: reference to ‘map’ is ambiguous 12 | if(map.count(s)) return map[s]; | ^~~ /usr/include/c++/13/bits/stl_map.h:102:11: note: candidates are: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’ 102 | class map | ^~~ answer.code:6:28: note: ‘std::map<std::__cxx11::basic_string<char>, int> map’ 6 | std::map<std::string, int> map; | ^~~ answer.code:14:16: error: reference to ‘map’ is ambiguous 14 | return map[s] = cc; | ^~~ /usr/include/c++/13/bits/stl_map.h:102:11: note: candidates are: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’ 102 | class map | ^~~ answer.code:6:28: note: ‘std::map<std::__cxx11::basic_string<char>, int> map’ 6 | std::map<std::string, int> map; | ^~~