Problem | queuecutting |
---|---|
User | epignhan97 |
Submission Time | 2024-06-21 14:07:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
queuecutting.cpp: In function ‘int main()’:
queuecutting.cpp:20:49: error: no matching function for call to ‘distance(std::vector<long long int>::iterator, __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >, long long int&)’
20 | v.insert(v.begin()+distance(v.begin(), it+1,y);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
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 queuecutting.cpp:1:
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:138:5: note: candidate: ‘template<class _InputIterator> constexpr typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)’
138 | distance(_InputIterator __first, _InputIterato