Problem ccs
User wrizz69
Submission Time 2026-09-21 18:51:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int32_t main()’:
ccs.cpp:23:34: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
23 | int m = e.lower_bound(b), m1 = e.upper_bound(a);
| ~~~~~~~~~~~~~^~~
| |
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
ccs.cpp:23:57: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
23 | int m = e.lower_bound(b), m1 = e.upper_bound(a);
| ~~~~~~~~~~~~~^~~
| |
| std::set<long long