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 'void fib_heap<TYPE, COMP>::enqueue(const TYPE&) [with TYPE = _point*; COMP = compare_t]':
main.cpp:158:1:   required from here
fib_heap.h:89:11: error: 'struct fib_heap<_point*, compare_t>::_node' has no member named 'parent'
     node->parent = nullptr;
     ~~~~~~^~~~~~
fib_heap.h: In instantiation of 'void fib_heap<TYPE, COMP>::consolidate() [with TYPE = _point*; COMP = compare_t]':
fib_heap.h:166:20:   required from 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = _point*; COMP = compare_t]'
main.cpp:158:1:   required from here
fib_heap.h:230:23: error: 'struct fib_heap<_point*, compare_t>::_node' has no member named 'parent'
                 A[i]->parent = nullptr;
                 ~~~~~~^~~~~~
fib_heap.h: In instantiation of 'void fib_heap<TYPE, COMP>::link(fib_heap<TYPE, COMP>::_node*, fib_heap<TYPE, COMP>::_node*) [with TYPE = _point*; COMP = compare_t]':
fib_heap.h:216:17:   required from 'void fib_heap<TYPE, COMP>::consolidate() [with TYPE = _point*; COMP = compare_t]'
fib_heap.h:166:20:   required from 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = _point*; COMP = compare_t]'
main.cpp:158:1:   required from here
fib_heap.h:187:11: error: 'struct fib_heap<_point*, compare_t>::_node' has no member named 'parent'
     node->parent = root;
     ~~~~~~^~~~~~
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:50:19
Judged At
2019-11-12 23:50:19
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes