Problem | airplane |
---|---|
User | Hengweezy |
Submission Time | 2024-03-03 00:04:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
airplane.cpp: In function ‘int d(std::vector<std::vector<std::pair<int, int> > >&, int)’:
airplane.cpp:21:42: error: invalid initialization of reference of type ‘std::vector<std::pair<int, int> >&’ from expression of type ‘__gnu_cxx::__alloc_traits<std::allocator<std::set<std::pair<int, int> > >, std::set<std::pair<int, int> > >::value_type’ {aka ‘std::set<std::pair<int, int> >’}
21 | vector<pair<int, int>>& var = v[target];
| ^
airplane.cpp:25:21: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘lower_bound’
25 | auto lowest =var.lower_bound({ftime, fmheight});
| ^~~~~~~~~~~
airplane.cpp:35:15: error: no match for ‘operator==’ (operand types are ‘std::_Rb_tree_const_iterator<std::pair<int, int> >’ and ‘std::vector<std::pair<int, int> >: