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 = cell; COMP = compare_t]':
main.cpp:197:3: required from here
unsorted_heap.h:71:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(num!=data.size()){
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = cell; COMP = compare_t]':
main.cpp:197:3: required from here
unsorted_heap.h:88:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; 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 = cell; COMP = compare_t]':
binary_heap.h:99:18: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]'
main.cpp:197:3: required from here
binary_heap.h:59:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=2*index+1;i<=data.size()-1;i=2*index+1){
~^~~~~~~~~~~~~~~
binary_heap.h:60:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i<data.size()-1 && compare(data[i+1],data[i])){
~^~~~~~~~~~~~~~
In file included from main.cpp:6:0:
unsorted_heap.h: In member function 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = cell; COMP = compare_t]':
unsorted_heap.h:94:14: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
return data[j];
~~~~^
main.cpp: In function 'int main(int, char**)':
main.cpp:111:30: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
cell c=PQ->dequeue_min();
^
main.cpp:92:14: warning: 'method' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(method[0]=='B'){
~~~~~~~~^
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully