Problem | airplane |
---|---|
User | Hengweezy |
Submission Time | 2024-03-03 00:50:40 |
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:22:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if(time > mmm[j]){
| ^
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:35:25: error: ‘fheight’ was not declared in this scope; did you mean ‘fmheight’?
35 | if(mmm[j] >= ftime + fheight){
| ^~~~~~~
| fmheight