prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main.o -c main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:44:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *optstring = "i:v";
^~~~~
main.cpp:42:9: warning: unused variable 'digit_optind' [-Wunused-variable]
int digit_optind = 0;
^~~~~~~~~~~~
In file included from main.cpp:8:0:
fib_heap.h: In instantiation of 'fib_heap<TYPE, COMP>::~fib_heap() [with TYPE = point; COMP = compare_t]':
main.cpp:222:1: required from here
fib_heap.h:260:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s;i++){dequeue_min();}
~^~
In file included from main.cpp:7:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]':
main.cpp:222:1: required from here
unsorted_heap.h:76:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s ; i++) {
~~^~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = point; COMP = compare_t]':
main.cpp:222:1: required from here
unsorted_heap.h:97:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s ; i++) {
~~^~~
In file included from main.cpp:9:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolatedown(int) [with TYPE = point; COMP = compare_t]':
binary_heap.h:113:16: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]'
main.cpp:222:1: required from here
binary_heap.h:65:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=2*id;j<=s;j=2*id){
~^~~
binary_heap.h:66:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j<s&&compare(data[j+1],data[j])){j++;}
~^~
main.cpp: In member function 'bool compare_t::operator()(point, point) const':
main.cpp:30:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from main.cpp:9:0:
binary_heap.h: In member function 'const TYPE& binary_heap<TYPE, COMP>::get_min() const [with TYPE = point; COMP = compare_t]':
binary_heap.h:124:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main(int, char**)':
main.cpp:202:30: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
else {PQ->enqueue(field[C.x][C.y-1]);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully