prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -c HW3TEST1.cpp
HW3TEST1.cpp: In function 'int main(int, char**)':
HW3TEST1.cpp:43:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char * const short_options = "vi:";
^~~~~
HW3TEST1.cpp:168:9: warning: unused variable 'step' [-Wunused-variable]
int step = 0;
^~~~
HW3TEST1.cpp:42:9: warning: unused variable 'ouput_opt_arg' [-Wunused-variable]
char * ouput_opt_arg;
^~~~~~~~~~~~~
In file included from HW3TEST1.cpp:12:0:
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = cell; COMP = compare_t]':
HW3TEST1.cpp:195:1: required from here
unsorted_heap.h:82:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < data.size(); i++) {
unsorted_heap.h:87:7: warning: reference to local variable 'returnVal' returned [-Wreturn-local-addr]
TYPE returnVal = data[key];
^~~~~~~~~
In file included from HW3TEST1.cpp:11:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolate_down(int) [with TYPE = cell; COMP = compare_t]':
HW3TEST1.cpp:195:1: required from here
binary_heap.h:90:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 2 * id + 1; j < data.size(); j = 2 * id + 1) {
binary_heap.h:91:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j < data.size() - 1 && !compare(data[j], data[j + 1]))
~~^~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o main HW3TEST1.o
finished
clean (3/3):
finished
all task finished, build successfully