Problem | potatoqueue |
---|---|
User | hwy |
Submission Time | 2023-06-10 21:58:18 |
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:37:19: error: no match for ‘operator+’ (operand types are ‘std::deque<std::pair<int, int> >’ and ‘int’)
37 | sort(copy1, copy1+N);
| ~~~~~^~
| | |
| | int
| std::deque<std::pair<int, int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from potatoqueue.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:423:5: note: candidate: ‘template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iter