| Problem | catlunch |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-10-28 20:58:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:26:29: error: no match for ‘operator-’ (operand types are ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} and ‘int’)
26 | auto max_itr = reach.end()-1;
| ~~~~~~~~~~~^~
| | |
| | int
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from catlunch.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:415:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr de