Problem | park |
---|---|
User | justin271828 |
Submission Time | 2025-02-20 22:10:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
park.cpp: In function ‘int main()’:
park.cpp:90:32: error: cannot convert ‘std::set<std::pair<int, long long int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<int, long long int> >’} to ‘long long int’ in initialization
90 | l2 temp = split.upper_bound({mid, 0});
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
| |
| std::set<std::pair<int, long long int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<int, long long int> >}
park.cpp:91:14: error: request for member ‘f’ in ‘temp’, which is of non-class type ‘long long int’
91 | if (temp.f < next) {
| ^
park.cpp:93:23: error: request for member ‘f’ in ‘temp’, which is of non-class type ‘long long int’
93 | if (s.find(temp.f) != s.end()) {
| ^
park.cpp:94:28: error: request for member ‘f’