Problem | zooqueue |
---|---|
User | innerspace777 |
Submission Time | 2024-06-11 12:45:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
zooqueue.cpp: In function ‘int32_t main()’:
zooqueue.cpp:22:25: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
22 | int it = s.upper_bound(a[i]);
| ~~~~~~~~~~~~~^~~~~~
| |
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
zooqueue.cpp:23:10: error: no match for ‘operator==’ (operand types are ‘long long int’ and ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’})
23 | if (it == s.end()) {
| ~~ ^~ ~~~~~~~
| | |
| | std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
| long long int
In file included from /usr/include/c++/9/regex:62,
f