prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main.o -c main.cpp
In file included from main.cpp:8:0:
fib_heap.h:378:2: warning: "/*" within comment [-Wcomment]
/*if(H==NULL||H->min==NULL||z==NULL)
main.cpp: In function 'int main(int, char**)':
main.cpp:79:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *string = "i:vc";
^~~~~~
main.cpp:78:8: warning: unused variable 'optind' [-Wunused-variable]
int optind;
^~~~~~
In file included from main.cpp:8:0:
fib_heap.h: In instantiation of 'void fib_heap<TYPE, COMP>::Consolidate() [with TYPE = int; COMP = std::less<int>]':
main.cpp:641:1: required from here
fib_heap.h:203:8: warning: unused variable 'myn' [-Wunused-variable]
int myn = H->maxDegree;
^~~
In file included from main.cpp:7:0:
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = int; COMP = std::less<int>]':
main.cpp:641:1: required from here
unsorted_heap.h:120:33: warning: returning reference to temporary [-Wreturn-local-addr]
if (mysize == 0) return 0;
^
unsorted_heap.h:121:6: warning: reference to local variable 'a' returned [-Wreturn-local-addr]
int a = data[0];
^
unsorted_heap.h:122:6: warning: variable 'b' set but not used [-Wunused-but-set-variable]
int b = 0;
^
unsorted_heap.h:136:33: warning: returning reference to temporary [-Wreturn-local-addr]
if (mysize == 0) return 0;
^
unsorted_heap.h:137:6: warning: reference to local variable 'a' returned [-Wreturn-local-addr]
int a = data[0];
^
unsorted_heap.h:138:6: warning: variable 'b' set but not used [-Wunused-but-set-variable]
int b = 0;
^
In file included from main.cpp:6:0:
binary_heap.h: In member function 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = int; COMP = std::less<int>]':
binary_heap.h:181:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main(int, char**)':
main.cpp:609:32: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
cellvec[i-1][j].pathcost = c + cellvec[i-1][j].cellweight;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:457:32: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
cellvec[i-1][j].pathcost = c + cellvec[i-1][j].cellweight;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:305:32: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
cellvec[i-1][j].pathcost = c + cellvec[i-1][j].cellweight;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully