prepare (1/3):
finished
make (2/3):
g++ -g -Wall -o main.o -c main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:43:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* optstring="vi:";
^~~~~
main.cpp:38:10: warning: variable 'implement' set but not used [-Wunused-but-set-variable]
bool implement=false;
^~~~~~~~~
In file included from main.cpp:7:0:
fib_heap.h: In instantiation of 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = grid*; COMP = compare_t]':
main.cpp:467:1: required from here
fib_heap.h:169:39: warning: unused variable 'exsw' [-Wunused-variable]
fib_node<TYPE> *x,*y,*exsw;
^~~~
In file included from main.cpp:6:0:
binary_heap.h: In instantiation of 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = grid*; COMP = compare_t]':
main.cpp:467:1: required from here
binary_heap.h:86:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=2*id;j<=data.size();j=2*id){
binary_heap.h:87:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j<data.size()&&compare(data[j],data[j-1])){j++;}
binary_heap.h: In instantiation of 'const TYPE& binary_heap<TYPE, COMP>::get_min() const [with TYPE = grid*; COMP = compare_t]':
main.cpp:467:1: required from here
binary_heap.h:103:10: warning: reference to local variable 'min' returned [-Wreturn-local-addr]
TYPE min=data[0];
^~~
In file included from main.cpp:5:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = grid*; COMP = compare_t]':
main.cpp:467:1: required from here
unsorted_heap.h:77:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(it=1;it<=data.size()-1;it++){
~~^~~~~~~~~~~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = grid*; COMP = compare_t]':
main.cpp:467:1: required from here
unsorted_heap.h:95:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(it=1;it<=data.size()-1;it++){
~~^~~~~~~~~~~~~~~
unsorted_heap.h:93:10: warning: reference to local variable 'min' returned [-Wreturn-local-addr]
TYPE min=data[0];
^~~
unsorted_heap.h:92:9: warning: variable 'itf' set but not used [-Wunused-but-set-variable]
int itf=0;
^~~
g++ -g -Wall -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully