prepare (1/3):
finished
make (2/3):
clang++ -std=c++11 -O2 -o main main.cpp util.cpp
In file included from main.cpp:12:
./unsorted_heap.h:104:9: warning: reference to stack memory associated with local variable 'min_val' returned [-Wreturn-stack-address]
return final_min_val;
^~~~~~~~~~~~~
./unsorted_heap.h:19:2: note: in instantiation of member function 'unsorted_heap<Point_Ptr, compare_t>::get_min' requested here
unsorted_heap(COMP comp = COMP());
^
main.cpp:55:12: note: in instantiation of member function 'unsorted_heap<Point_Ptr, compare_t>::unsorted_heap' requested here
pq = new unsorted_heap<Point_Ptr, compare_t>;
^
./unsorted_heap.h:103:14: note: binding reference variable 'final_min_val' here
const TYPE &final_min_val = min_val;
^ ~~~~~~~
1 warning generated.
finished
clean (3/3):
finished
all task finished, build successfully