prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o p2.o -c p2.cpp
p2.cpp: In function 'void insertionsort(int*, int, int)':
p2.cpp:25:6: warning: unused variable 'length' [-Wunused-variable]
int length=right-left+1;
^~~~~~
p2.cpp: In function 'int mypartition(int*, int, int, int)':
p2.cpp:127:6: warning: unused variable 'length' [-Wunused-variable]
int length=right-left+1;
^~~~~~
p2.cpp: In function 'int deterSel(int*, int, int, int)':
p2.cpp:187:5: warning: unused variable 'length' [-Wunused-variable]
int length=right-left+1;
^~~~~~
p2.cpp: In function 'void mySel()':
p2.cpp:241:10: warning: variable 'start' set but not used [-Wunused-but-set-variable]
clock_t start,end;
^~~~~
p2.cpp:241:16: warning: variable 'end' set but not used [-Wunused-but-set-variable]
clock_t start,end;
^~~
p2.cpp: In function 'void check()':
p2.cpp:342:37: warning: 'qResult' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(rResult==dResult&&rResult==qResult) ifnsame=0;
~~~~~~~^~~~~~~~~
p2.cpp:342:19: warning: 'dResult' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(rResult==dResult&&rResult==qResult) ifnsame=0;
~~~~~~~^~~~~~~~~
g++ -g -Wall -O2 -o main p2.o
finished
clean (3/3):
finished
all task finished, build successfully