Problem doubletrouble
User PlayVoltz
Submission Time 2023-09-11 13:22:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doubletrouble.cpp: In function ‘int main()’:
doubletrouble.cpp:26:17: error: no match for ‘operator%’ (operand types are ‘const value_type’ {aka ‘const std::pair<long long unsigned int, long long unsigned int>’} and ‘const long long unsigned int’)
26 | cout<<pq2.top()%MOD;
| ~~~~~~~~~^~~~
| | |
| | const long long unsigned int
| const value_type {aka const std::pair<long long unsigned int, long long unsigned int>}
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from doubletrouble.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__modulus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__modulus, typename _Dom1::value_type>::resu