Problem cardtrick
User blackscreen1
Submission Time 2023-10-15 10:47:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cardtrick.cpp: In function ‘int main()’:
cardtrick.cpp:61:38: error: no matching function for call to ‘min(std::priority_queue<long long int>::size_type, long long int)’
61 | cout << cnt + min(pq.size(), t-cdel);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from cardtrick.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
cardtrick.cpp:61:38: note: deduced conflicting types for parameter ‘const _Tp’ (‘long unsigned int’ and ‘long long int’)
61 | cout <&l