Record Detail

Memory Exceeded

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
main.cpp: In constructor 'grid::grid(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
main.cpp:43:14: warning: 'grid::height' will be initialized after [-Wreorder]
     unsigned height;
              ^~~~~~
main.cpp:41:14: warning:   'unsigned int grid::start' [-Wreorder]
     unsigned start,end;
              ^~~~~
main.cpp:45:5: warning:   when initialized here [-Wreorder]
     grid(unsigned width,unsigned height, unsigned sx,unsigned sy,unsigned ex,unsigned ey):
     ^~~~
In file included from main.cpp:3:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]':
main.cpp:246:1:   required from here
unsorted_heap.h:71:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < data.size(); ++i) {
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = point*; COMP = compare_t]':
main.cpp:246:1:   required from here
unsorted_heap.h:86:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < data.size(); ++i) {
In file included from main.cpp:4:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::enqueue(const TYPE&) [with TYPE = point*; COMP = compare_t]':
main.cpp:246:1:   required from here
binary_heap.h:71:34: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
         if(compare(data[i],data[i-1>>1]))
                                 ~^~
binary_heap.h:72:21: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             swap(i,i-1>>1);
                    ~^~
binary_heap.h: In instantiation of 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = compare_t]':
main.cpp:246:1:   required from here
binary_heap.h:86:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 2*id+1; j <size() ; j=2*id+1) {
                          ~~^~~~~~~
binary_heap.h:87:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(j<size()-1&&compare(data[j+1],data[j]))j++;
            ~^~~~~~~~~
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 680.0 KiB
#2 Accepted 3ms 684.0 KiB
#3 Accepted 3ms 656.0 KiB
#4 Accepted 3ms 596.0 KiB
#5 Accepted 3ms 744.0 KiB
#6 Accepted 2ms 592.0 KiB
#7 Accepted 3ms 728.0 KiB
#8 Accepted 2ms 692.0 KiB
#9 Accepted 3ms 664.0 KiB
#10 Accepted 3ms 680.0 KiB
#11 Accepted 3ms 648.0 KiB
#12 Accepted 3ms 740.0 KiB
#13 Accepted 3ms 700.0 KiB
#14 Accepted 3ms 744.0 KiB
#15 Accepted 3ms 600.0 KiB
#16 Accepted 3ms 724.0 KiB
#17 Accepted 2ms 796.0 KiB
#18 Accepted 2ms 780.0 KiB
#19 Accepted 3ms 628.0 KiB
#20 Accepted 3ms 664.0 KiB
#21 Accepted 2ms 624.0 KiB
#22 Accepted 3ms 632.0 KiB
#23 Accepted 3ms 872.0 KiB
#24 Accepted 2ms 884.0 KiB
#25 Accepted 2ms 780.0 KiB
#26 Accepted 3ms 856.0 KiB
#27 Accepted 3ms 636.0 KiB
#28 Accepted 4ms 920.0 KiB
#29 Accepted 3ms 680.0 KiB
#30 Accepted 3ms 776.0 KiB
#31 Accepted 4ms 740.0 KiB
#32 Accepted 4ms 756.0 KiB
#33 Accepted 4ms 788.0 KiB
#34 Accepted 5ms 660.0 KiB
#35 Accepted 3ms 784.0 KiB
#36 Accepted 4ms 864.0 KiB
#37 Accepted 6ms 1.016 MiB
#38 Accepted 19ms 948.0 KiB
#39 Accepted 8ms 1.059 MiB
#40 Accepted 19ms 1.023 MiB
#41 Accepted 9ms 896.0 KiB
#42 Accepted 20ms 992.0 KiB
#43 Accepted 6ms 1.094 MiB
#44 Accepted 11ms 1.008 MiB
#45 Accepted 8ms 1.07 MiB
#46 Accepted 15ms 1020.0 KiB
#47 Accepted 7ms 1.039 MiB
#48 Accepted 14ms 936.0 KiB
#49 Accepted 6ms 1.066 MiB
#50 Accepted 10ms 1.25 MiB
#51 Accepted 5ms 1008.0 KiB
#52 Accepted 11ms 992.0 KiB
#53 Accepted 6ms 1.156 MiB
#54 Accepted 10ms 980.0 KiB
#55 Accepted 5ms 1.039 MiB
#56 Accepted 5ms 996.0 KiB
#57 Accepted 5ms 1016.0 KiB
#58 Accepted 5ms 992.0 KiB
#59 Accepted 5ms 996.0 KiB
#60 Accepted 5ms 1.031 MiB
#61 Accepted 14ms 1.887 MiB
#62 Accepted 38ms 1.695 MiB
#63 Accepted 21ms 1.664 MiB
#64 Accepted 57ms 1.883 MiB
#65 Accepted 21ms 1.84 MiB
#66 Accepted 48ms 1.77 MiB
#67 Accepted 10ms 1.941 MiB
#68 Accepted 15ms 1.922 MiB
#69 Accepted 11ms 1.715 MiB
#70 Accepted 15ms 1.695 MiB
#71 Accepted 12ms 1.75 MiB
#72 Accepted 18ms 1.867 MiB
#73 Accepted 14ms 1.699 MiB
#74 Accepted 35ms 1.723 MiB
#75 Accepted 20ms 1.785 MiB
#76 Accepted 44ms 1.801 MiB
#77 Accepted 20ms 1.723 MiB
#78 Accepted 39ms 1.785 MiB
#79 Accepted 15ms 1.652 MiB
#80 Accepted 46ms 1.809 MiB
#81 Accepted 26ms 1.773 MiB
#82 Accepted 59ms 1.781 MiB
#83 Accepted 25ms 1.812 MiB
#84 Accepted 57ms 1.879 MiB
#85 Accepted 55ms 8.801 MiB
#86 Accepted 56ms 8.828 MiB
#87 Accepted 55ms 8.848 MiB
#88 Accepted 104ms 8.875 MiB
#89 Accepted 446ms 8.742 MiB
#90 Accepted 177ms 8.887 MiB
#91 Accepted 79ms 8.758 MiB
#92 Accepted 307ms 8.859 MiB
#93 Accepted 117ms 8.82 MiB
#94 Accepted 63ms 8.855 MiB
#95 Accepted 110ms 8.91 MiB
#96 Accepted 78ms 8.941 MiB
#97 Accepted 79ms 8.965 MiB
#98 Accepted 218ms 8.828 MiB
#99 Accepted 128ms 8.938 MiB
#100 Accepted 102ms 8.91 MiB
#101 Accepted 481ms 8.82 MiB
#102 Accepted 181ms 8.875 MiB
#103 Accepted 60ms 8.871 MiB
#104 Accepted 94ms 8.773 MiB
#105 Accepted 75ms 8.793 MiB
#106 Accepted 79ms 8.977 MiB
#107 Accepted 243ms 8.891 MiB
#108 Accepted 125ms 8.824 MiB
#109 Accepted 357ms 32.852 MiB
#110 Accepted 573ms 32.855 MiB
#111 Accepted 367ms 32.918 MiB
#112 Accepted 611ms 32.875 MiB
#113 Accepted 233ms 32.918 MiB
#114 Accepted 278ms 32.867 MiB
#115 Accepted 222ms 32.852 MiB
#116 Accepted 253ms 32.988 MiB
#117 Accepted 393ms 32.871 MiB
#118 Accepted 691ms 32.941 MiB
#119 Accepted 269ms 32.961 MiB
#120 Accepted 368ms 32.836 MiB
#121 Accepted 263ms 32.762 MiB
#122 Accepted 333ms 32.812 MiB
#123 Accepted 306ms 32.812 MiB
#124 Accepted 439ms 32.906 MiB
#125 Time Exceeded (-9) ≥1301ms ≥129.062 MiB
#126 Accepted 2508ms 129.105 MiB
#127 Time Exceeded (-9) ≥806ms ≥128.969 MiB
#128 Accepted 1173ms 129.055 MiB
#129 Time Exceeded (-9) ≥1111ms ≥129.004 MiB
#130 Accepted 2031ms 129.074 MiB
#131 Time Exceeded (-9) ≥1800ms ≥128.988 MiB
#132 Accepted 3672ms 129.148 MiB
#133 Time Exceeded (-9) ≥1500ms ≥129.086 MiB
#134 Accepted 2902ms 129.07 MiB
#135 Time Exceeded (-9) ≥2002ms ≥129.07 MiB
#136 Accepted 3991ms 129.066 MiB
#137 Time Exceeded (-9) ≥1702ms ≥129.074 MiB
#138 Accepted 3581ms 129.141 MiB
#139 Time Exceeded (-9) ≥701ms ≥129.0 MiB
#140 Time Exceeded (-9) ≥1000ms ≥129.109 MiB
#141 Memory Exceeded (-9) ≥2905ms ≥256.0 MiB
#142 Memory Exceeded ≥6016ms ≥256.0 MiB
#143 Memory Exceeded (-9) ≥2101ms ≥256.0 MiB
#144 Memory Exceeded ≥4145ms ≥256.0 MiB
#145 Memory Exceeded (-9) ≥1200ms ≥256.0 MiB
#146 Memory Exceeded ≥2078ms ≥256.0 MiB
#147 Memory Exceeded (-9) ≥2202ms ≥256.0 MiB
#148 Memory Exceeded ≥3973ms ≥256.0 MiB
#149 Memory Exceeded (-9) ≥2905ms ≥256.0 MiB
#150 Memory Exceeded ≥5730ms ≥256.0 MiB
#151 Memory Exceeded (-9) ≥2404ms ≥256.0 MiB
#152 Memory Exceeded ≥4569ms ≥256.0 MiB
#153 Memory Exceeded (-9) ≥1604ms ≥256.0 MiB
#154 Memory Exceeded ≥2799ms ≥256.0 MiB
#155 Memory Exceeded (-9) ≥2603ms ≥256.0 MiB
#156 Memory Exceeded ≥5236ms ≥256.0 MiB
#157 Memory Exceeded (-9) ≥2403ms ≥256.0 MiB
#158 Memory Exceeded ≥4760ms ≥256.0 MiB
#159 Memory Exceeded (-9) ≥2804ms ≥256.0 MiB
#160 Memory Exceeded ≥5722ms ≥256.0 MiB

Information

Submit By
Type
Submission
Homework
Lab05-PriorityQueues
Language
GNU Make
Submit At
2019-11-12 11:18:16
Judged At
2019-11-15 16:42:07
Judged By
Score
655
Total Time
≥110491ms
Peak Memory
≥256.0 MiB