prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main.o -c main.cpp
In file included from main.cpp:6:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = mynode*; COMP = mynode_comp]':
main.cpp:111:1: required from here
unsorted_heap.h:82:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=min_address; i<data.size()-1; i++)
~^~~~~~~~~~~~~~
In file included from main.cpp:5:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolateDown(int) [with TYPE = mynode*; COMP = mynode_comp]':
binary_heap.h:82:18: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = mynode*; COMP = mynode_comp]'
main.cpp:111:1: required from here
binary_heap.h:124:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=2*id; j<=data.size()-1; j=2*j)
~^~~~~~~~~~~~~~~
binary_heap.h:126:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j<data.size()-1 && compare(data[j+1],data[j]))
~^~~~~~~~~~~~~~
main.cpp: In function 'int main(int, char**)':
main.cpp:107:12: warning: 'pq' may be used uninitialized in this function [-Wmaybe-uninitialized]
delete pq;
^~
main.cpp:49:15: warning: 'heap_indicator' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (strcmp(heap_indicator,"BINARY") == 0)
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o arg.o -c arg.cpp
g++ -g -Wall -O2 -o main main.o arg.o
finished
clean (3/3):
finished
all task finished, build successfully