Record Detail

Runtime Error

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main grid.cpp
grid.cpp:10:1: warning: 'typedef' was ignored in this declaration
 typedef struct cell{
 ^~~~~~~
In file included from grid.cpp:5:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]':
grid.cpp:183:1:   required from here
unsorted_heap.h:37:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < size(); ++j) {
                     ~~^~~~~~~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = cell; COMP = compare_t]':
grid.cpp:183:1:   required from here
unsorted_heap.h:49:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < size(); ++j) {
                     ~~^~~~~~~~
unsorted_heap.h:52:10: warning: reference to local variable 're' returned [-Wreturn-local-addr]
     TYPE re=data[i];
          ^~
In file included from grid.cpp:4:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::PercolateDown(int) [with TYPE = cell; COMP = compare_t]':
binary_heap.h:71:18:   required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]'
grid.cpp:183:1:   required from here
binary_heap.h:41:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 2*id; i <= size(); i = 2*id) {
                        ~~^~~~~~~~~
binary_heap.h:42:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i<size() && (compare(data[i],data[i-1]))) i++;
             ~^~~~~~~
grid.cpp: In function 'int main(int, char**)':
grid.cpp:145:36: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
                         PQ->enqueue(N[i]);
                         ~~~~~~~~~~~^~~~~~
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted 3ms 600.0 KiB
#2 Accepted 3ms 764.0 KiB
#3 Accepted 3ms 556.0 KiB
#4 Accepted 3ms 484.0 KiB
#5 Accepted 3ms 716.0 KiB
#6 Accepted 3ms 800.0 KiB
#7 Accepted 3ms 692.0 KiB
#8 Accepted 3ms 744.0 KiB
#9 Accepted 3ms 496.0 KiB
#10 Accepted 3ms 644.0 KiB
#11 Accepted 3ms 716.0 KiB
#12 Accepted 2ms 740.0 KiB
#13 Accepted 3ms 592.0 KiB
#14 Accepted 3ms 556.0 KiB
#15 Accepted 3ms 660.0 KiB
#16 Accepted 3ms 592.0 KiB
#17 Accepted 3ms 592.0 KiB
#18 Accepted 3ms 596.0 KiB
#19 Accepted 3ms 660.0 KiB
#20 Accepted 3ms 544.0 KiB
#21 Accepted 3ms 744.0 KiB
#22 Accepted 3ms 704.0 KiB
#23 Accepted 3ms 560.0 KiB
#24 Accepted 3ms 600.0 KiB
#25 Accepted 3ms 632.0 KiB
#26 Accepted 5ms 652.0 KiB
#27 Accepted 3ms 808.0 KiB
#28 Accepted 5ms 628.0 KiB
#29 Accepted 3ms 648.0 KiB
#30 Accepted 5ms 580.0 KiB
#31 Accepted 3ms 712.0 KiB
#32 Accepted 5ms 608.0 KiB
#33 Accepted 3ms 664.0 KiB
#34 Accepted 5ms 640.0 KiB
#35 Accepted 3ms 628.0 KiB
#36 Accepted 6ms 668.0 KiB
#37 Accepted 5ms 692.0 KiB
#38 Accepted 56ms 820.0 KiB
#39 Accepted 7ms 932.0 KiB
#40 Accepted 64ms 796.0 KiB
#41 Accepted 8ms 900.0 KiB
#42 Accepted 60ms 860.0 KiB
#43 Accepted 4ms 788.0 KiB
#44 Accepted 34ms 944.0 KiB
#45 Accepted 6ms 908.0 KiB
#46 Accepted 36ms 916.0 KiB
#47 Accepted 6ms 772.0 KiB
#48 Accepted 39ms 888.0 KiB
#49 Accepted 5ms 844.0 KiB
#50 Accepted 24ms 792.0 KiB
#51 Accepted 5ms 812.0 KiB
#52 Accepted 27ms 868.0 KiB
#53 Accepted 5ms 704.0 KiB
#54 Accepted 25ms 844.0 KiB
#55 Accepted 4ms 848.0 KiB
#56 Accepted 7ms 768.0 KiB
#57 Accepted 4ms 760.0 KiB
#58 Accepted 7ms 836.0 KiB
#59 Accepted 4ms 896.0 KiB
#60 Accepted 7ms 856.0 KiB
#61 Accepted 10ms 1.758 MiB
#62 Accepted 131ms 1.66 MiB
#63 Accepted 17ms 1.633 MiB
#64 Accepted 145ms 1.781 MiB
#65 Accepted 15ms 1.66 MiB
#66 Accepted 157ms 1.633 MiB
#67 Accepted 8ms 1.711 MiB
#68 Accepted 29ms 1.664 MiB
#69 Accepted 9ms 1.711 MiB
#70 Accepted 31ms 1.844 MiB
#71 Accepted 9ms 1.68 MiB
#72 Accepted 35ms 1.688 MiB
#73 Accepted 9ms 1.656 MiB
#74 Accepted 111ms 1.605 MiB
#75 Accepted 16ms 1.754 MiB
#76 Accepted 122ms 1.727 MiB
#77 Accepted 15ms 1.605 MiB
#78 Accepted 116ms 1.789 MiB
#79 Accepted 11ms 1.629 MiB
#80 Accepted 165ms 1.656 MiB
#81 Accepted 24ms 1.785 MiB
#82 Accepted 178ms 1.703 MiB
#83 Accepted 19ms 1.574 MiB
#84 Accepted 181ms 1.621 MiB
#85 Accepted 32ms 6.812 MiB
#86 Accepted 34ms 6.891 MiB
#87 Accepted 37ms 6.898 MiB
#88 Accepted 69ms 6.898 MiB
#89 Accepted 352ms 6.883 MiB
#90 Accepted 142ms 6.84 MiB
#91 Accepted 49ms 6.977 MiB
#92 Accepted 233ms 6.91 MiB
#93 Accepted 89ms 6.824 MiB
#94 Accepted 39ms 6.809 MiB
#95 Accepted 83ms 6.887 MiB
#96 Accepted 55ms 6.887 MiB
#97 Accepted 54ms 6.809 MiB
#98 Accepted 183ms 6.812 MiB
#99 Accepted 97ms 6.926 MiB
#100 Accepted 73ms 6.895 MiB
#101 Accepted 381ms 6.91 MiB
#102 Accepted 144ms 6.832 MiB
#103 Accepted 41ms 6.812 MiB
#104 Accepted 71ms 6.887 MiB
#105 Accepted 53ms 6.852 MiB
#106 Accepted 55ms 6.887 MiB
#107 Accepted 199ms 6.859 MiB
#108 Accepted 98ms 6.891 MiB
#109 Runtime Error (-11) 10ms 804.0 KiB
#110 Runtime Error (-11) 10ms 824.0 KiB
#111 Runtime Error (-11) 10ms 852.0 KiB
#112 Runtime Error (-11) 10ms 984.0 KiB
#113 Runtime Error (-11) 10ms 744.0 KiB
#114 Runtime Error (-11) 10ms 744.0 KiB
#115 Runtime Error (-11) 11ms 824.0 KiB
#116 Runtime Error (-11) 11ms 732.0 KiB
#117 Runtime Error (-11) 9ms 808.0 KiB
#118 Runtime Error (-11) 9ms 824.0 KiB
#119 Runtime Error (-11) 10ms 716.0 KiB
#120 Runtime Error (-11) 9ms 732.0 KiB
#121 Runtime Error (-11) 10ms 740.0 KiB
#122 Runtime Error (-11) 10ms 716.0 KiB
#123 Runtime Error (-11) 10ms 724.0 KiB
#124 Runtime Error (-11) 10ms 820.0 KiB
#125 Runtime Error (-11) 31ms 800.0 KiB
#126 Runtime Error (-11) 35ms 824.0 KiB
#127 Runtime Error (-11) 31ms 760.0 KiB
#128 Runtime Error (-11) 30ms 748.0 KiB
#129 Runtime Error (-11) 32ms 808.0 KiB
#130 Runtime Error (-11) 30ms 800.0 KiB
#131 Runtime Error (-11) 33ms 804.0 KiB
#132 Runtime Error (-11) 33ms 736.0 KiB
#133 Runtime Error (-11) 33ms 736.0 KiB
#134 Runtime Error (-11) 33ms 780.0 KiB
#135 Runtime Error (-11) 33ms 760.0 KiB
#136 Runtime Error (-11) 30ms 780.0 KiB
#137 Runtime Error (-11) 34ms 788.0 KiB
#138 Runtime Error (-11) 34ms 840.0 KiB
#139 Runtime Error (-11) 33ms 836.0 KiB
#140 Runtime Error (-11) 33ms 736.0 KiB
#141 Runtime Error (-11) 50ms 776.0 KiB
#142 Runtime Error (-11) 48ms 800.0 KiB
#143 Runtime Error (-11) 48ms 720.0 KiB
#144 Runtime Error (-11) 47ms 816.0 KiB
#145 Runtime Error (-11) 45ms 796.0 KiB
#146 Runtime Error (-11) 51ms 740.0 KiB
#147 Runtime Error (-11) 46ms 800.0 KiB
#148 Runtime Error (-11) 53ms 792.0 KiB
#149 Runtime Error (-11) 50ms 732.0 KiB
#150 Runtime Error (-11) 46ms 732.0 KiB
#151 Runtime Error (-11) 47ms 784.0 KiB
#152 Runtime Error (-11) 45ms 724.0 KiB
#153 Runtime Error (-11) 54ms 872.0 KiB
#154 Runtime Error (-11) 48ms 740.0 KiB
#155 Runtime Error (-11) 49ms 752.0 KiB
#156 Runtime Error (-11) 54ms 736.0 KiB
#157 Runtime Error (-11) 50ms 792.0 KiB
#158 Runtime Error (-11) 50ms 752.0 KiB
#159 Runtime Error (-11) 50ms 788.0 KiB
#160 Runtime Error (-11) 48ms 760.0 KiB

Information

Submit By
Type
Submission
Homework
Project Three: Priority Queue and its Application
Language
GNU Make
Submit At
2018-11-10 17:32:43
Judged At
2018-11-14 01:31:55
Judged By
Score
540
Total Time
6530ms
Peak Memory
6.977 MiB