Problem hungrycats
User dooweidde
Submission Time 2025-04-02 16:39:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hungrycats.cpp: In function ‘int main()’:
hungrycats.cpp:27:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
27 | if (cats.begin < 0 and cats.end() > 0){
| ~~~~~~~~~~ ^ ~
| | |
| | int
| <unresolved overloaded function type>
hungrycats.cpp:27:43: error: no match for ‘operator>’ (operand types are ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’} and ‘int’)
27 | if (cats.begin < 0 and cats.end() > 0){
| ~~~~~~~~~~ ^ ~
| | |
| | int
| std::vector<long long int>::iterator {aka _