| Problem | lunchbox |
|---|---|
| User | ethantanaki |
| Submission Time | 2026-03-07 10:40:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:11: error: no match for ‘operator=’ (operand types are ‘std::deque<int, std::allocator<int> >’ and ‘int’)
11 | pq[i] = a;
| ^
In file included from /usr/include/c++/9/deque:69,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from lunchbox.cpp:1:
/usr/include/c++/9/bits/deque.tcc:93:5: note: candidate: ‘std::deque<_Tp, _Alloc>& std::deque<_Tp, _Alloc>::operator=(const std::deque<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]’
93 | deque<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/deque.tcc:94:28: note: no known conversion for argument 1 from ‘int’ to ‘const std::deque<int, std::allocator<int> >&’
94 | operator=(const deque& __x)
| ~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/deque:67,