Record Detail

Compile Error

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
In file included from main.cpp:4:0:
fib_heap.h: In instantiation of 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = _point*; COMP = compare_t]':
main.cpp:158:1:   required from here
fib_heap.h:143:19: error: invalid conversion from '_point*' to 'int' [-fpermissive]
     int key =min->key;
              ~~~~~^~~
fib_heap.h:169:12: error: invalid conversion from 'int' to '_point*' [-fpermissive]
     return key;
            ^~~
Makefile:16: recipe for target 'main.o' failed
make: *** [main.o] Error 1

build failed

Information

Submit By
Type
Submission
Homework
Lab05-PriorityQueues
Language
GNU Make
Submit At
2019-11-12 23:44:21
Judged At
2019-11-12 23:44:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes