Problem | globalwarming |
---|---|
User | samvar0907 |
Submission Time | 2024-04-05 18:44:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘int gw(int, const std::vector<int>&)’:
globalwarming.cpp:33:28: error: no match for ‘operator<=’ (operand types are ‘__gnu_cxx::__normal_iterator<const int*, std::vector<int> >’ and ‘int’)
33 | if (maxElement <= 20){
| ~~~~~~~~~~ ^~ ~~
| | |
| | int
| __gnu_cxx::__normal_iterator<const 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 globalwarming.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>&)’
1059 | operator<=(const sub_match<_BiIter>& __lhs, const su