QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#238613 | #7686. The Phantom Menace | ucup-team1126# | Compile Error | / | / | C++20 | 9.2kb | 2023-11-04 17:08:19 | 2023-11-04 17:08:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In instantiation of ‘DataStructures::HashMap<KeyT, ValueT, HashFunc, PredFunc>::HashMap() [with KeyT = __int128 unsigned; ValueT = int; HashFunc = std::hash<__int128 unsigned>; PredFunc = std::equal_to<__int128 unsigned>]’: answer.code:268:23: required from here answer.code:187:43: error: could not convert ‘<brace-enclosed initializer list>()’ from ‘<brace-enclosed initializer list>’ to ‘std::__hash_enum<__int128 unsigned, false>’ 187 | HashMap(): pool{0},cnt(0),head{0},hash{},pred{} | ^~~~~~ | | | <brace-enclosed initializer list> In file included from /usr/include/c++/11/string_view:42, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/bits/functional_hash.h:102:12: error: ‘std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = __int128 unsigned; bool <anonymous> = false]’ is private within this context 102 | struct hash : __hash_enum<_Tp> | ^~~~ /usr/include/c++/11/bits/functional_hash.h:84:7: note: declared private here 84 | ~__hash_enum(); | ^ answer.code:187:43: note: synthesized method ‘std::hash<__int128 unsigned>::~hash()’ first required here 187 | HashMap(): pool{0},cnt(0),head{0},hash{},pred{} | ^~~~~~ answer.code: In instantiation of ‘void DataStructures::HashMap<KeyT, ValueT, HashFunc, PredFunc>::clear() [with KeyT = __int128 unsigned; ValueT = int; HashFunc = std::hash<__int128 unsigned>; PredFunc = std::equal_to<__int128 unsigned>]’: answer.code:309:35: required from here answer.code:231:55: error: no match for call to ‘(std::hash<__int128 unsigned>) (__int128 unsigned&)’ 231 | else for(int i=1;i<=cnt;i++) head[hash(e[i].key)%HMOD]=0; | ~~~~^~~~~~~~~~ answer.code: In instantiation of ‘ValueT& DataStructures::HashMap<KeyT, ValueT, HashFunc, PredFunc>::operator[](const KeyT&) [with KeyT = __int128 unsigned; ValueT = int; HashFunc = std::hash<__int128 unsigned>; PredFunc = std::equal_to<__int128 unsigned>]’: answer.code:312:19: required from here answer.code:222:28: error: no match for call to ‘(std::hash<__int128 unsigned>) (const __int128 unsigned&)’ 222 | auto h=hash(k)%HMOD; | ~~~~^~~ answer.code: In instantiation of ‘int DataStructures::HashMap<KeyT, ValueT, HashFunc, PredFunc>::count(const KeyT&) [with KeyT = __int128 unsigned; ValueT = int; HashFunc = std::hash<__int128 unsigned>; PredFunc = std::equal_to<__int128 unsigned>]’: answer.code:316:23: required from here answer.code:196:28: error: no match for call to ‘(std::hash<__int128 unsigned>) (const __int128 unsigned&)’ 196 | auto h=hash(k)%HMOD; | ~~~~^~~