Problem wabot
User silvspider
Submission Time 2024-07-13 09:47:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int32_t main()’:
wabot.cpp:8:44: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int> >::priority_queue(int)’
8 | priority_queue<int,vector<int>> pq(1300005);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from wabot.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:584:2: note: candidate: ‘template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&)’
584 | priority_queue(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_queue.h:584:2: note: template argument deduction/substitution failed:
wabot.cpp:8:44: note: candidate expects 4 arguments, 1 provided<