prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main.o -c main.cpp
In file included from main.cpp:7:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1: required from here
unsorted_heap.h:70:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i!=data.size(); i++){
unsorted_heap.h:76:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos!=data.size()-1) {
~~~^~~~~~~~~~~~~~~
unsorted_heap.h:77:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = pos; i < data.size() - 1; i++)
~~^~~~~~~~~~~~~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1: required from here
unsorted_heap.h:87:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i!=data.size(); i++){
unsorted_heap.h:86:8: warning: reference to local variable 'MIN_ITEM' returned [-Wreturn-local-addr]
TYPE MIN_ITEM = data[0];
^~~~~~~~
In file included from main.cpp:5:0:
binary_heap.h: In instantiation of 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1: required from here
binary_heap.h:77:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i < data.size()/2 && flag){
~~^~~~~~~~~~~~~~~
binary_heap.h:79:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ch+1<data.size()){
main.cpp: In function 'int main(int, char**)':
main.cpp:155:12: warning: 'pq' may be used uninitialized in this function [-Wmaybe-uninitialized]
delete pq;
^~
main.cpp:100:5: warning: 'impl' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(impl == 'B')
^~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully