Problem ccs
User Maskaphobia
Submission Time 2024-01-31 16:19:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:11:6: error: ‘event’ was not declared in this scope; did you mean ‘sigevent’?
11 | if (event == "TRANSIT") {
| ^~~~~
| sigevent
ccs.cpp:14:29: error: cannot convert ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘int’ in initialization
14 | int idk = cats.lower_bound(a);
| ~~~~~~~~~~~~~~~~^~~
| |
| std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
ccs.cpp:15:11: error: no match for ‘operator!=’ (operand types are ‘int’ and ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’})
15 | if (idk != cats.end() && idk <=b){
| ~~~ ^~ ~~~~~~~~~~
| | |
| int std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
In file i