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:50:9: warning: unused variable 'opterr' [-Wunused-variable]
int opterr=0;
^~~~~~
main.cpp:51:9: warning: unused variable 'digit_optind' [-Wunused-variable]
int digit_optind=0;
^~~~~~~~~~~~
In file included from main.cpp:15:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]':
main.cpp:268:1: required from here
unsorted_heap.h:74:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=1;j<index;j++){
~^~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = point; COMP = compare_t]':
main.cpp:268:1: required from here
unsorted_heap.h:90:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=1;j<index;j++){
~^~~~~~
In file included from main.cpp:13:0:
fib_heap.h: In instantiation of 'FibNode<TYPE>::FibNode(TYPE) [with TYPE = point]':
fib_heap.h:222:20: required from 'void fib_heap<TYPE, COMP>::enqueue(const TYPE&) [with TYPE = point; COMP = compare_t]'
main.cpp:268:1: required from here
fib_heap.h:13:20: warning: 'FibNode<point>::right' will be initialized after [-Wreorder]
FibNode<TYPE> *right; // 右兄弟
^~~~~
fib_heap.h:10:20: warning: 'FibNode<point>* FibNode<point>::child' [-Wreorder]
FibNode<TYPE> *child; // 第一个孩子节点
^~~~~
fib_heap.h:16:5: warning: when initialized here [-Wreorder]
FibNode(TYPE value):left(NULL),right(NULL),child(NULL),parent(NULL),key(value), degree(0){ //marked(false),
^~~~~~~
fib_heap.h:11:20: warning: 'FibNode<point>::parent' will be initialized after [-Wreorder]
FibNode<TYPE> *parent; // 父节点
^~~~~~
fib_heap.h:9:14: warning: 'point FibNode<point>::key' [-Wreorder]
public: TYPE key;
^~~
fib_heap.h:16:5: warning: when initialized here [-Wreorder]
FibNode(TYPE value):left(NULL),right(NULL),child(NULL),parent(NULL),key(value), degree(0){ //marked(false),
^~~~~~~
In file included from main.cpp:2:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolatedown(int) [with TYPE = point; COMP = compare_t]':
binary_heap.h:90:15: required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]'
main.cpp:268:1: required from here
binary_heap.h:60:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=2*id;j<=index;j=2*id){
~^~~~~~~
binary_heap.h:61:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j<index&&!compare(data[j],data[j+1])){j++;}
~^~~~~~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully