Problem | dijkstra |
---|---|
User | Reverberate |
Submission Time | 2023-03-22 17:25:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘void shiftUp(int)’:
dijkstra.cpp:75:58: error: cannot convert ‘node’ to ‘node*’
75 | while(index > 0 && cmp_node(priority_queue_heap[index], priority_queue_heap[parent(index)])){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| node
dijkstra.cpp:18:21: note: initializing argument 1 of ‘bool cmp_node(node*, node*)’
18 | bool cmp_node(node *a, node *b) {
| ~~~~~~^
dijkstra.cpp: In function ‘void shiftDown(int)’:
dijkstra.cpp:85:93: error: cannot convert ‘node’ to ‘node*’
85 | if(leftChild_index <= number_of_elements && cmp_node(priority_queue_heap[leftChild_index], priority_queue_heap[minIndex])){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|