Problem | airplane |
---|---|
User | Hengweezy |
Submission Time | 2024-03-03 00:30:49 |
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:25:18: error: cannot convert ‘const std::pair<int, int>’ to ‘int’ in initialization
25 | int value1 = *prev(lowest);
| ^~~~~~~~~~~~~
| |
| const std::pair<int, int>
airplane.cpp:26:15: error: request for member ‘first’ in ‘value1’, which is of non-class type ‘int’
26 | if(value1.first + value1.second > fmheight +ftime){
| ^~~~~
airplane.cpp:26:30: error: request for member ‘second’ in ‘value1’, which is of non-class type ‘int’
26 | if(value1.first + value1.second > fmheight +ftime){
| ^~~~~~
airplane.cpp:32:18: error: cannot convert ‘const std::pair<int, int>’ to ‘int’ in initialization
32 | int npos = *next(pos);
| ^~~~~~~~~~