Problem airplane
User Hengweezy
Submission Time 2024-03-03 00:52:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

airplane.cpp: In function ‘int d(std::vector<std::vector<std::pair<int, int> > >&, int)’:
airplane.cpp:29:34: error: invalid initialization of reference of type ‘std::pair<int, int>&’ from expression of type ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<std::pair<int, int> > >, std::vector<std::pair<int, int> > >::value_type’ {aka ‘std::vector<std::pair<int, int> >’}
29 | pair<int, int>& p = dir[source];
| ^