Record Detail

Memory Exceeded

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
In file included from main.cpp:7:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1:   required from here
unsorted_heap.h:70:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=1; i!=data.size(); i++){
unsorted_heap.h:76:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(pos!=data.size()-1) {
      ~~~^~~~~~~~~~~~~~~
unsorted_heap.h:77:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = pos; i < data.size() - 1; i++)
                       ~~^~~~~~~~~~~~~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1:   required from here
unsorted_heap.h:87:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=1; i!=data.size(); i++){
unsorted_heap.h:86:8: warning: reference to local variable 'MIN_ITEM' returned [-Wreturn-local-addr]
   TYPE MIN_ITEM = data[0];
        ^~~~~~~~
In file included from main.cpp:5:0:
binary_heap.h: In instantiation of 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = Cell*; COMP = compare_c]':
main.cpp:158:1:   required from here
binary_heap.h:77:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(i < data.size()/2 && flag){
         ~~^~~~~~~~~~~~~~~
binary_heap.h:79:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(ch+1<data.size()){
main.cpp: In function 'int main(int, char**)':
main.cpp:155:12: warning: 'pq' may be used uninitialized in this function [-Wmaybe-uninitialized]
     delete pq;
            ^~
main.cpp:100:5: warning: 'impl' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if(impl == 'B')
     ^~
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 716.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 796.0 KiB
#4 Accepted 3ms 604.0 KiB
#5 Accepted 3ms 480.0 KiB
#6 Accepted 3ms 568.0 KiB
#7 Accepted 3ms 564.0 KiB
#8 Accepted 3ms 700.0 KiB
#9 Accepted 3ms 560.0 KiB
#10 Accepted 3ms 720.0 KiB
#11 Accepted 3ms 600.0 KiB
#12 Accepted 3ms 628.0 KiB
#13 Accepted 3ms 676.0 KiB
#14 Accepted 3ms 592.0 KiB
#15 Accepted 3ms 536.0 KiB
#16 Accepted 3ms 628.0 KiB
#17 Accepted 4ms 648.0 KiB
#18 Accepted 3ms 632.0 KiB
#19 Accepted 3ms 588.0 KiB
#20 Accepted 3ms 680.0 KiB
#21 Accepted 3ms 584.0 KiB
#22 Accepted 3ms 540.0 KiB
#23 Accepted 3ms 600.0 KiB
#24 Accepted 3ms 464.0 KiB
#25 Accepted 3ms 592.0 KiB
#26 Accepted 4ms 632.0 KiB
#27 Accepted 3ms 712.0 KiB
#28 Accepted 4ms 728.0 KiB
#29 Accepted 3ms 708.0 KiB
#30 Accepted 4ms 660.0 KiB
#31 Accepted 3ms 584.0 KiB
#32 Accepted 4ms 808.0 KiB
#33 Accepted 3ms 516.0 KiB
#34 Accepted 4ms 568.0 KiB
#35 Accepted 3ms 616.0 KiB
#36 Accepted 4ms 648.0 KiB
#37 Accepted 6ms 952.0 KiB
#38 Accepted 26ms 988.0 KiB
#39 Accepted 10ms 1.0 MiB
#40 Accepted 33ms 984.0 KiB
#41 Accepted 8ms 1.09 MiB
#42 Accepted 33ms 1.051 MiB
#43 Accepted 5ms 928.0 KiB
#44 Accepted 20ms 1016.0 KiB
#45 Accepted 8ms 1.004 MiB
#46 Accepted 22ms 976.0 KiB
#47 Accepted 6ms 1.0 MiB
#48 Accepted 21ms 964.0 KiB
#49 Accepted 5ms 900.0 KiB
#50 Accepted 13ms 984.0 KiB
#51 Accepted 6ms 1.004 MiB
#52 Accepted 14ms 1.027 MiB
#53 Accepted 6ms 976.0 KiB
#54 Accepted 14ms 1.066 MiB
#55 Accepted 5ms 984.0 KiB
#56 Accepted 6ms 1.02 MiB
#57 Accepted 5ms 948.0 KiB
#58 Accepted 6ms 972.0 KiB
#59 Accepted 5ms 956.0 KiB
#60 Accepted 6ms 896.0 KiB
#61 Accepted 12ms 2.297 MiB
#62 Accepted 58ms 2.348 MiB
#63 Accepted 24ms 2.227 MiB
#64 Accepted 82ms 2.363 MiB
#65 Accepted 17ms 2.426 MiB
#66 Accepted 75ms 2.285 MiB
#67 Accepted 9ms 2.238 MiB
#68 Accepted 18ms 2.32 MiB
#69 Accepted 11ms 2.246 MiB
#70 Accepted 21ms 2.414 MiB
#71 Accepted 11ms 2.293 MiB
#72 Accepted 19ms 2.262 MiB
#73 Accepted 13ms 2.242 MiB
#74 Accepted 60ms 2.34 MiB
#75 Accepted 23ms 2.234 MiB
#76 Accepted 84ms 2.254 MiB
#77 Accepted 16ms 2.172 MiB
#78 Accepted 63ms 2.258 MiB
#79 Accepted 13ms 2.281 MiB
#80 Accepted 77ms 2.352 MiB
#81 Accepted 35ms 2.234 MiB
#82 Accepted 131ms 2.258 MiB
#83 Accepted 20ms 2.324 MiB
#84 Accepted 93ms 2.293 MiB
#85 Accepted 43ms 11.301 MiB
#86 Accepted 46ms 11.402 MiB
#87 Accepted 46ms 11.191 MiB
#88 Accepted 82ms 11.309 MiB
#89 Accepted 631ms 11.258 MiB
#90 Accepted 137ms 11.344 MiB
#91 Accepted 63ms 11.258 MiB
#92 Accepted 432ms 11.32 MiB
#93 Accepted 90ms 11.367 MiB
#94 Accepted 54ms 11.316 MiB
#95 Accepted 133ms 11.297 MiB
#96 Accepted 62ms 11.254 MiB
#97 Accepted 68ms 11.242 MiB
#98 Accepted 304ms 11.355 MiB
#99 Accepted 97ms 11.457 MiB
#100 Accepted 82ms 11.422 MiB
#101 Accepted 686ms 11.234 MiB
#102 Accepted 135ms 11.359 MiB
#103 Accepted 49ms 11.219 MiB
#104 Accepted 105ms 11.309 MiB
#105 Accepted 59ms 11.328 MiB
#106 Accepted 65ms 11.297 MiB
#107 Accepted 334ms 11.309 MiB
#108 Accepted 94ms 11.258 MiB
#109 Accepted 276ms 43.395 MiB
#110 Accepted 433ms 43.535 MiB
#111 Accepted 295ms 43.457 MiB
#112 Accepted 491ms 43.527 MiB
#113 Accepted 186ms 43.488 MiB
#114 Accepted 212ms 43.391 MiB
#115 Accepted 175ms 43.418 MiB
#116 Accepted 200ms 43.449 MiB
#117 Accepted 327ms 43.445 MiB
#118 Accepted 535ms 43.469 MiB
#119 Accepted 213ms 43.461 MiB
#120 Accepted 273ms 43.477 MiB
#121 Accepted 199ms 43.379 MiB
#122 Accepted 254ms 43.391 MiB
#123 Accepted 257ms 43.363 MiB
#124 Accepted 339ms 43.531 MiB
#125 Accepted 1221ms 171.844 MiB
#126 Accepted 1956ms 172.02 MiB
#127 Accepted 747ms 171.891 MiB
#128 Accepted 907ms 171.98 MiB
#129 Time Exceeded (-9) ≥1100ms ≥171.945 MiB
#130 Accepted 1634ms 172.133 MiB
#131 Accepted 1764ms 171.961 MiB
#132 Accepted 2854ms 172.188 MiB
#133 Accepted 1404ms 171.949 MiB
#134 Accepted 2235ms 172.043 MiB
#135 Accepted 1923ms 171.957 MiB
#136 Accepted 3167ms 172.277 MiB
#137 Time Exceeded (-9) ≥1704ms ≥172.031 MiB
#138 Accepted 2865ms 172.059 MiB
#139 Accepted 696ms 171.957 MiB
#140 Accepted 872ms 171.934 MiB
#141 Memory Exceeded (-9) ≥2902ms ≥256.0 MiB
#142 Memory Exceeded ≥6011ms ≥256.0 MiB
#143 Memory Exceeded (-9) ≥2105ms ≥256.0 MiB
#144 Memory Exceeded ≥4311ms ≥256.0 MiB
#145 Memory Exceeded (-9) ≥1205ms ≥256.0 MiB
#146 Memory Exceeded (-9) ≥2201ms ≥256.0 MiB
#147 Memory Exceeded (-9) ≥2201ms ≥256.0 MiB
#148 Memory Exceeded ≥4258ms ≥256.0 MiB
#149 Memory Exceeded (-9) ≥2901ms ≥256.0 MiB
#150 Memory Exceeded ≥5642ms ≥256.0 MiB
#151 Memory Exceeded (-9) ≥2401ms ≥256.0 MiB
#152 Memory Exceeded ≥4823ms ≥256.0 MiB
#153 Memory Exceeded (-9) ≥1604ms ≥256.0 MiB
#154 Memory Exceeded (-9) ≥3201ms ≥256.0 MiB
#155 Memory Exceeded (-9) ≥2600ms ≥256.0 MiB
#156 Memory Exceeded ≥5187ms ≥256.0 MiB
#157 Memory Exceeded (-9) ≥2405ms ≥256.0 MiB
#158 Memory Exceeded ≥4875ms ≥256.0 MiB
#159 Memory Exceeded (-9) ≥2802ms ≥256.0 MiB
#160 Memory Exceeded ≥7077ms ≥256.0 MiB

Information

Submit By
Type
Submission
Homework
Project Three: Priority Queue and its Application
Language
GNU Make
Submit At
2018-11-11 00:10:13
Judged At
2018-11-14 01:00:00
Judged By
Score
690
Total Time
≥107791ms
Peak Memory
≥256.0 MiB