Problem ccs
User Hengweezy
Submission Time 2024-01-31 15:56:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:19:36: error: cannot convert ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘int’ in initialization
19 | int lower = sleepcat.lower_bound(start);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
ccs.cpp:20:37: error: cannot convert ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘int’ in initialization
20 | int higher = sleepcat.upper_bound(end);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
ccs.cpp:29:13: error: could not convert ‘e.std::__cxx11::basic_string<char>::operator=(((const char*)"SL