Problem priorityqueue
User WANCH5789W
Submission Time 2026-05-03 13:37:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

priorityqueue.cpp: In function ‘int main()’:
priorityqueue.cpp:27:40: error: no match for ‘operator=’ (operand types are ‘std::queue<long long int>’ and ‘bool’)
27 | if (q.front() != V || q.empty()) {q = false;
| ^~~~~
In file included from /usr/include/c++/9/queue:64,
from priorityqueue.cpp:4:
/usr/include/c++/9/bits/stl_queue.h:96:11: note: candidate: ‘std::queue<long long int>& std::queue<long long int>::operator=(const std::queue<long long int>&)’
96 | class queue
| ^~~~~
/usr/include/c++/9/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from ‘bool’ to ‘const std::queue<long long int>&’
/usr/include/c++/9/bits/stl_queue.h:96:11: note: candidate: ‘std::queue<long long int>& std::queue<long long int>::operator=(std::queue<long long int>&&)’
/usr/include/c++/9/bits/stl_queue.h:96:11: note: no know