Problem | potatoqueue |
---|---|
User | hwy |
Submission Time | 2023-06-10 21:53:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatoqueue.cpp:12:1: error: declaration of ‘auto index’ has no initializer
12 | auto index;
| ^~~~
potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:36:2: error: reference to ‘copy’ is ambiguous
36 | copy = sorted_q;
| ^~~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from potatoqueue.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:410:5: note: candidates are: ‘template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::copy(std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)’
410 | copy(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
| ^~~~
In file included from /usr/include/c++/9/deque:69,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from potatoqueue.cpp: