prepare (1/3):
finished
make (2/3):
g++ -o main main.cpp event.h event.cpp priority_queue.h binary_heap.h unsorted_heap.h simulation.h simulation.cpp
In file included from simulation.h:4:0,
from main.cpp:2:
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = int; COMP = std::less<int>]':
main.cpp:60:1: required from here
unsorted_heap.h:93:10: warning: reference to local variable 'temp' returned [-Wreturn-local-addr]
auto temp = this->data[1];
^~~~
In file included from simulation.h:4:0,
from simulation.cpp:2:
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = int; COMP = std::less<int>]':
simulation.cpp:138:1: required from here
unsorted_heap.h:93:10: warning: reference to local variable 'temp' returned [-Wreturn-local-addr]
auto temp = this->data[1];
^~~~
finished
clean (3/3):
finished
all task finished, build successfully