QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#628353 | #5254. Differences | ucup-team5160 | Compile Error | / | / | C++20 | 3.8kb | 2024-10-10 19:48:22 | 2024-10-10 19:48:22 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int count_and(const BitSet&, const BitSet&)’: answer.code:63:24: error: no matching function for call to ‘popcount(__int128 unsigned)’ 63 | cnt += popcount(b1.values[i] & b2.values[i]); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:76, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bit:426:5: note: candidate: ‘template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)’ 426 | popcount(_Tp __x) noexcept | ^~~~~~~~ /usr/include/c++/13/bit:426:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/13/bits/stl_pair.h:60, from /usr/include/c++/13/bits/stl_algobase.h:64: /usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = int]’: /usr/include/c++/13/bit:379:11: required by substitution of ‘template<class _Tp, class _Up> using std::_If_is_unsigned_integer = std::enable_if_t<std::__is_one_of<typename std::remove_cv< <template-parameter-1-1> >::type, unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>::value, _Up> [with _Tp = __int128 unsigned; _Up = int]’ /usr/include/c++/13/bit:426:5: required by substitution of ‘template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp) [with _Tp = __int128 unsigned]’ answer.code:63:24: required from here /usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, int>’ 2610 | using enable_if_t = typename enable_if<_Cond, _Tp>::type; | ^~~~~~~~~~~