Problem airplane
User Hengweezy
Submission Time 2024-03-03 00:51:37
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];
| ^
airplane.cpp:36:28: error: expected ‘;’ before ‘}’ token
36 | mmm[j] = ftime +theight
| ^
| ;
37 | }
| ~