prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main main.cpp
In file included from main.cpp:2:0:
fib_heap.h: In instantiation of 'fib_heap<TYPE, COMP>::~fib_heap() [with TYPE = point*; COMP = compare_t]':
main.cpp:223:1: required from here
fib_heap.h:91:10: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
TYPE temp;
^~~~
In file included from main.cpp:4:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]':
main.cpp:223:1: required from here
unsorted_heap.h:69:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < data.size(); i++){
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = point*; COMP = compare_t]':
main.cpp:223:1: required from here
unsorted_heap.h:82:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < data.size(); i++){
In file included from main.cpp:3:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::Percolate_down(int) [with TYPE = point*; COMP = compare_t]':
binary_heap.h:75:19: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]'
main.cpp:223:1: required from here
binary_heap.h:101:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 2*id; j < data.size(); j = 2*id) {
binary_heap.h:102:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j < data.size()-1 && compare(data[j+1], data[j])) j++;
~~^~~~~~~~~~~~~~~
In file included from main.cpp:2:0:
fib_heap.h: In instantiation of 'void fib_heap<TYPE, COMP>::heap_link(fib_heap<TYPE, COMP>::node*, fib_heap<TYPE, COMP>::node*) [with TYPE = point*; COMP = compare_t]':
fib_heap.h:177:22: required from 'void fib_heap<TYPE, COMP>::consolidate() [with TYPE = point*; COMP = compare_t]'
fib_heap.h:135:25: required from 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]'
main.cpp:223:1: required from here
fib_heap.h:222:11: warning: unused variable 'temp' [-Wunused-variable]
node* temp = first;
^~~~
main.cpp: In function 'int main(int, char**)':
main.cpp:180:28: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
PQ->enqueue(temp2);
~~~~~~~~~~~^~~~~~~
In file included from main.cpp:2:0:
fib_heap.h: In member function 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]':
fib_heap.h:138:12: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized]
return result;
^~~~~~
finished
clean (3/3):
finished
all task finished, build successfully