Problem | zooqueue |
---|---|
User | eliasxyz |
Submission Time | 2025-05-28 14:29:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
zooqueue.cpp: In function ‘bool isGood(std::vector<long long int>)’:
zooqueue.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for(i=1;i<v.size();i++){
| ^
zooqueue.cpp:16:9: error: no match for ‘operator+’ (operand types are ‘std::vector<long long int>’ and ‘int’)
16 | copy(v+1,v+i-1,a.begin());
| ~^~
| | |
| | int
| std::vector<long long 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 zooqueue.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_iterator<_Iterator>::diffe