Problem | woodcutter |
---|---|
User | kahchun |
Submission Time | 2023-12-26 20:29:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
woodcutter.cpp: In function ‘long long int horizontal_cut(int)’:
woodcutter.cpp:37:26: error: no match for ‘operator=’ (operand types are ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} and ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’})
37 | low = hori.lower_bound(X);
| ^
In file included from /usr/include/c++/9/map:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from woodcutter.cpp:1:
/usr/include/c++/9/bits/stl_tree.h:326:12: note: candidate: ‘constexpr std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&)’
326 | struct _Rb_tree_const_iterator
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_tree.h:326:12: note: no known conversion for argument 1 from ‘std::set<long long