prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -c main.cpp
In file included from main.cpp:4:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = pointt; COMP = compare_t]':
main.cpp:201:1: required from here
unsorted_heap.h:71:23: 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 = pointt; COMP = compare_t]':
main.cpp:201:1: required from here
unsorted_heap.h:87:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < data.size(); i++) {
unsorted_heap.h:85:10: warning: reference to local variable 'minn' returned [-Wreturn-local-addr]
TYPE minn = data.front();
^~~~
unsorted_heap.h:86:9: warning: variable 'min_index' set but not used [-Wunused-but-set-variable]
int min_index = 0;
^~~~~~~~~
In file included from main.cpp:3:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolateDown(int) [with TYPE = pointt; COMP = compare_t]':
binary_heap.h:96:39: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = pointt; COMP = compare_t]'
main.cpp:201:1: required from here
binary_heap.h:52:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 2 * id + 1; j <= data.size() - 1; j = 2 * id + 1) {
~~^~~~~~~~~~~~~~~~~~
binary_heap.h:53:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j < data.size() - 1 && compare(data[j + 1], data[j])) j++;
~~^~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully