| Problem | deathray |
|---|---|
| User | huangchengcheng |
| Submission Time | 2026-05-04 19:42:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
deathray.cpp: In function ‘int main()’:
deathray.cpp:8:60: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::priority_queue(int&)’
8 | priority_queue<int64,vector<int64>,greater<int64>> pq(n);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from deathray.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/substitutio