Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
main.cpp: In function 'int dselect(int*, int, int, int)':
main.cpp:110:13: warning: unused variable 'x' [-Wunused-variable]
         int x = dselect(a,p,p+(r-p)/5-1,(r-p)/10);
             ^
main.cpp: In function 'int main()':
main.cpp:152:41: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<"The order-"<<order<<" item is "<<val;
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
g++ -g -Wall -O2 -o main main.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted 3ms 588.0 KiB
#2 Accepted 3ms 708.0 KiB
#3 Accepted 2ms 584.0 KiB
#4 Accepted 3ms 672.0 KiB
#5 Accepted 2ms 736.0 KiB
#6 Accepted 2ms 564.0 KiB
#7 Accepted 3ms 680.0 KiB
#8 Accepted 3ms 464.0 KiB
#9 Accepted 2ms 500.0 KiB
#10 Accepted 2ms 692.0 KiB
#11 Accepted 2ms 564.0 KiB
#12 Accepted 2ms 480.0 KiB
#13 Accepted 2ms 508.0 KiB
#14 Accepted 2ms 504.0 KiB
#15 Accepted 3ms 628.0 KiB
#16 Accepted 3ms 584.0 KiB
#17 Accepted 3ms 532.0 KiB
#18 Accepted 3ms 508.0 KiB
#19 Accepted 3ms 628.0 KiB
#20 Accepted 4ms 548.0 KiB
#21 Accepted 5ms 732.0 KiB
#22 Accepted 6ms 692.0 KiB
#23 Accepted 8ms 836.0 KiB
#24 Accepted 8ms 764.0 KiB
#25 Accepted 14ms 816.0 KiB
#26 Accepted 14ms 832.0 KiB
#27 Accepted 30ms 868.0 KiB
#28 Accepted 32ms 1.008 MiB
#29 Accepted 58ms 1.203 MiB
#30 Accepted 60ms 1.141 MiB
#31 Accepted 115ms 1.414 MiB
#32 Accepted 117ms 1.559 MiB
#33 Accepted 282ms 2.637 MiB
#34 Accepted 297ms 2.574 MiB
#35 Accepted 552ms 4.523 MiB
#36 Accepted 577ms 4.531 MiB
#37 Accepted 1093ms 8.387 MiB
#38 Accepted 1162ms 8.441 MiB
#39 Accepted 2795ms 19.73 MiB
#40 Accepted 2934ms 19.723 MiB

Information

Submit By
Type
Submission
Homework
Project Two: Linear-Time Selection
Language
GNU Make
Submit At
2018-10-22 23:40:44
Judged At
2018-10-29 20:09:04
Judged By
Score
800
Total Time
10232ms
Peak Memory
19.73 MiB