Problem | lightningrod |
---|---|
User | haydendoo |
Submission Time | 2023-04-26 08:11:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In instantiation of ‘void radix_sort(std::vector<_Tp>&) [with T = std::pair<int, int>]’:
lightningrod.cpp:87:19: required from here
lightningrod.cpp:56:40: error: no match for ‘operator>>’ (operand types are ‘const std::pair<int, int>’ and ‘const int’)
56 | for (const T &x : data) ++count[(x >> start) & mask];
| ~~~^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from lightningrod.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(std::byte, _IntegerType)’
140 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:140:5: note: template argument deduction/substitution failed:
lightningrod.cpp:56:40: note: cannot convert ‘x’ (type ‘c