Problem duckeatduck
User chickennn
Submission Time 2026-04-24 20:42:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckeatduck.cpp: In function ‘int main()’:
duckeatduck.cpp:10:25: error: no match for ‘operator<=’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’})
10 | if (a.begin() + i + 1 <= a.size()) {
| ~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~
| | |
| | std::vector<int>::size_type {aka long unsigned int}
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from duckeatduck.cpp:1:
/usr/include/c++/9/bits/regex.h:1059:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)’