Problem ccs
User shawn
Submission Time 2024-07-05 22:40:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int32_t main()’:
ccs.cpp:27:28: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
27 | int u = a.lower_bound(y);
| ~~~~~~~~~~~~~^~~
| |
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
ccs.cpp:28:26: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
28 | int uu = a.lower_bound(x);
| ~~~~~~~~~~~~~^~~
| |
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
ccs.cpp:29:12: error: no match for ‘operator==’ (operand types are ‘long long int’ and ‘std::s