Record Detail

Memory Exceeded

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp
main.cpp: In function 'int main()':
main.cpp:125:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d", &type, &n, &ord);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:130:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &(a[i]));
         ~~~~~^~~~~~~~~~~~~~~
main.cpp:141:50: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
     cout << "The order-" << ord <<" item is " << ans << endl;
                                                  ^~~
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 2ms 600.0 KiB
#2 Accepted 3ms 552.0 KiB
#3 Accepted 3ms 720.0 KiB
#4 Accepted 2ms 568.0 KiB
#5 Accepted 3ms 688.0 KiB
#6 Accepted 2ms 620.0 KiB
#7 Accepted 2ms 676.0 KiB
#8 Accepted 2ms 688.0 KiB
#9 Accepted 2ms 600.0 KiB
#10 Accepted 2ms 480.0 KiB
#11 Accepted 3ms 636.0 KiB
#12 Accepted 3ms 500.0 KiB
#13 Accepted 3ms 696.0 KiB
#14 Accepted 3ms 632.0 KiB
#15 Accepted 3ms 616.0 KiB
#16 Accepted 3ms 648.0 KiB
#17 Accepted 3ms 472.0 KiB
#18 Accepted 3ms 620.0 KiB
#19 Accepted 3ms 716.0 KiB
#20 Accepted 3ms 600.0 KiB
#21 Accepted 4ms 612.0 KiB
#22 Accepted 4ms 668.0 KiB
#23 Accepted 5ms 800.0 KiB
#24 Accepted 6ms 760.0 KiB
#25 Accepted 8ms 844.0 KiB
#26 Accepted 8ms 792.0 KiB
#27 Accepted 15ms 1.051 MiB
#28 Accepted 16ms 1.152 MiB
#29 Accepted 29ms 1.312 MiB
#30 Accepted 31ms 2.055 MiB
#31 Accepted 51ms 2.059 MiB
#32 Accepted 58ms 3.586 MiB
#33 Accepted 133ms 4.367 MiB
#34 Accepted 141ms 8.102 MiB
#35 Accepted 255ms 8.121 MiB
#36 Accepted 285ms 15.73 MiB
#37 Accepted 507ms 15.785 MiB
#38 Accepted 578ms 31.098 MiB
#39 Accepted 1333ms 38.781 MiB
#40 Memory Exceeded ≥1466ms ≥64.0 MiB

Information

Submit By
Type
Submission
Homework
Project Two: Linear-Time Selection
Language
GNU Make
Submit At
2018-10-19 16:06:20
Judged At
2018-10-22 02:50:30
Judged By
Score
780
Total Time
≥5004ms
Peak Memory
≥64.0 MiB