prepare (1/3):
finished
make (2/3):
g++ -g -Wall -o main.o -c main.cpp
In file included from main.cpp:13:0:
fib_heap.h: In instantiation of 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = node*; COMP = compare_t]':
main.cpp:267:1: required from here
fib_heap.h:129:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<z->child.size();i++){
fib_heap.h:150:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<root.size();j++){
In file included from main.cpp:14:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = node*; COMP = compare_t]':
main.cpp:267:1: required from here
unsorted_heap.h:72:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<data.size();i++){
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = node*; COMP = compare_t]':
main.cpp:267:1: required from here
unsorted_heap.h:87:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<data.size();i++){
unsorted_heap.h:86:7: warning: reference to local variable 'min' returned [-Wreturn-local-addr]
TYPE min = data[0];
^~~
In file included from main.cpp:12:0:
binary_heap.h: In instantiation of 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = node*; COMP = compare_t]':
main.cpp:267:1: required from here
binary_heap.h:98:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i =child(index); i<data.size();i=child(index)){
binary_heap.h:99:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i<data.size() && compare(data[child(index)+1], data[child(index)])){
In file included from main.cpp:13:0:
fib_heap.h: In member function 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = node*; COMP = compare_t]':
fib_heap.h:198:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
g++ -g -Wall -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully