Problem ccs
User Hengweezy
Submission Time 2024-01-31 15:56:00
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:26: error: ‘class std::set<int>’ has no member named ‘higher_bound’; did you mean ‘lower_bound’?
20 | int higher = sleepcat.higher_bound(end);
| ^~~~~~~~~~~~
| lower_bound
ccs.cpp:29:13: error: could not convert ‘e.std::__cxx11::basic_string<char>::operator=(((const char*)"SLEEP"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
29 | else if(e = "SLEEP"){
| ~~^~~~~~~~~
| |<