Problem | parallelogrampairs |
---|---|
User | G92 |
Submission Time | 2024-08-03 12:04:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
parallelogrampairs.cpp: In function ‘int main()’:
parallelogrampairs.cpp:99:21: error: no match for ‘operator+’ (operand types are ‘std::deque<long long int>::iterator’ {aka ‘std::_Deque_iterator<long long int, long long int&, long long int*>’} and ‘std::_Deque_iterator<long long int, long long int&, long long int*>’)
99 | b.erase(b.begin()+it);
| ~~~~~~~~~^~~
| | |
| | _Deque_iterator<[...],[...],[...]>
| _Deque_iterator<[...],[...],[...]>
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from parallelogrampairs.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:246:7: note: candidate: ‘std::_Deque_iterator<_Tp, _Ref, _Ptr>::_Self std::_Deque_iterator<_Tp, _Ref, _Ptr>::operator+(std::_Deque_iterator<_Tp, _Ref, _Ptr>::difference_