prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main grid.cpp
grid.cpp:10:1: warning: 'typedef' was ignored in this declaration
typedef struct cell{
^~~~~~~
In file included from grid.cpp:5:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]':
grid.cpp:183:1: required from here
unsorted_heap.h:37:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < size(); ++j) {
~~^~~~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = cell; COMP = compare_t]':
grid.cpp:183:1: required from here
unsorted_heap.h:49:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < size(); ++j) {
~~^~~~~~~~
unsorted_heap.h:52:10: warning: reference to local variable 're' returned [-Wreturn-local-addr]
TYPE re=data[i];
^~
In file included from grid.cpp:4:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::PercolateDown(int) [with TYPE = cell; COMP = compare_t]':
binary_heap.h:71:18: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]'
grid.cpp:183:1: required from here
binary_heap.h:41:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2*id; i <= size(); i = 2*id) {
~~^~~~~~~~~
binary_heap.h:42:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i<size() && (compare(data[i],data[i-1]))) i++;
~^~~~~~~
grid.cpp: In function 'int main(int, char**)':
grid.cpp:145:36: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
PQ->enqueue(N[i]);
~~~~~~~~~~~^~~~~~
finished
clean (3/3):
finished
all task finished, build successfully