Record Detail

Time Exceeded

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
main.cpp: In function 'int main(int, char**)':
main.cpp:44:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     char *optstring = "i:v";
                       ^~~~~
main.cpp:42:9: warning: unused variable 'digit_optind' [-Wunused-variable]
     int digit_optind = 0;
         ^~~~~~~~~~~~
In file included from main.cpp:8:0:
fib_heap.h: In instantiation of 'fib_heap<TYPE, COMP>::~fib_heap() [with TYPE = point; COMP = compare_t]':
main.cpp:222:1:   required from here
fib_heap.h:260:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s;i++){dequeue_min();}
                 ~^~
In file included from main.cpp:7:0:
unsorted_heap.h: In instantiation of 'TYPE unsorted_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]':
main.cpp:222:1:   required from here
unsorted_heap.h:76:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < s ; i++) {
                     ~~^~~
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = point; COMP = compare_t]':
main.cpp:222:1:   required from here
unsorted_heap.h:97:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < s ; i++) {
                     ~~^~~
In file included from main.cpp:9:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolatedown(int) [with TYPE = point; COMP = compare_t]':
binary_heap.h:113:16:   required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = point; COMP = compare_t]'
main.cpp:222:1:   required from here
binary_heap.h:65:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(j=2*id;j<=s;j=2*id){
                  ~^~~
binary_heap.h:66:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (j<s&&compare(data[j+1],data[j])){j++;}
             ~^~
main.cpp: In member function 'bool compare_t::operator()(point, point) const':
main.cpp:30:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
In file included from main.cpp:9:0:
binary_heap.h: In member function 'const TYPE& binary_heap<TYPE, COMP>::get_min() const [with TYPE = point; COMP = compare_t]':
binary_heap.h:124:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
main.cpp: In function 'int main(int, char**)':
main.cpp:202:30: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
             else {PQ->enqueue(field[C.x][C.y-1]);
                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
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 712.0 KiB
#2 Accepted 3ms 480.0 KiB
#3 Accepted 3ms 628.0 KiB
#4 Accepted 3ms 484.0 KiB
#5 Accepted 3ms 464.0 KiB
#6 Accepted 3ms 656.0 KiB
#7 Accepted 3ms 572.0 KiB
#8 Accepted 3ms 528.0 KiB
#9 Accepted 3ms 620.0 KiB
#10 Accepted 2ms 592.0 KiB
#11 Accepted 3ms 596.0 KiB
#12 Accepted 3ms 596.0 KiB
#13 Accepted 3ms 532.0 KiB
#14 Accepted 4ms 592.0 KiB
#15 Accepted 3ms 600.0 KiB
#16 Accepted 3ms 712.0 KiB
#17 Accepted 3ms 552.0 KiB
#18 Accepted 3ms 628.0 KiB
#19 Accepted 3ms 552.0 KiB
#20 Accepted 3ms 644.0 KiB
#21 Accepted 3ms 500.0 KiB
#22 Accepted 3ms 516.0 KiB
#23 Accepted 3ms 532.0 KiB
#24 Accepted 3ms 584.0 KiB
#25 Accepted 3ms 568.0 KiB
#26 Accepted 5ms 564.0 KiB
#27 Accepted 3ms 552.0 KiB
#28 Accepted 5ms 524.0 KiB
#29 Accepted 3ms 800.0 KiB
#30 Accepted 5ms 684.0 KiB
#31 Accepted 3ms 736.0 KiB
#32 Accepted 5ms 660.0 KiB
#33 Accepted 3ms 720.0 KiB
#34 Accepted 6ms 624.0 KiB
#35 Accepted 3ms 592.0 KiB
#36 Accepted 6ms 708.0 KiB
#37 Accepted 5ms 776.0 KiB
#38 Accepted 56ms 864.0 KiB
#39 Accepted 5ms 696.0 KiB
#40 Accepted 56ms 828.0 KiB
#41 Accepted 7ms 892.0 KiB
#42 Accepted 61ms 900.0 KiB
#43 Accepted 5ms 804.0 KiB
#44 Accepted 39ms 792.0 KiB
#45 Accepted 5ms 820.0 KiB
#46 Accepted 35ms 824.0 KiB
#47 Accepted 6ms 768.0 KiB
#48 Accepted 39ms 828.0 KiB
#49 Accepted 4ms 880.0 KiB
#50 Accepted 23ms 800.0 KiB
#51 Accepted 5ms 776.0 KiB
#52 Accepted 23ms 856.0 KiB
#53 Accepted 5ms 848.0 KiB
#54 Accepted 25ms 848.0 KiB
#55 Accepted 4ms 864.0 KiB
#56 Accepted 8ms 920.0 KiB
#57 Accepted 4ms 748.0 KiB
#58 Accepted 8ms 780.0 KiB
#59 Accepted 4ms 848.0 KiB
#60 Accepted 7ms 804.0 KiB
#61 Accepted 10ms 1.738 MiB
#62 Accepted 133ms 1.715 MiB
#63 Accepted 12ms 1.824 MiB
#64 Accepted 125ms 1.695 MiB
#65 Accepted 14ms 1.695 MiB
#66 Accepted 154ms 1.676 MiB
#67 Accepted 7ms 1.656 MiB
#68 Accepted 30ms 1.746 MiB
#69 Accepted 8ms 1.66 MiB
#70 Accepted 29ms 1.656 MiB
#71 Accepted 9ms 1.742 MiB
#72 Accepted 32ms 1.758 MiB
#73 Accepted 9ms 1.73 MiB
#74 Accepted 106ms 1.652 MiB
#75 Accepted 11ms 1.684 MiB
#76 Accepted 108ms 1.738 MiB
#77 Accepted 14ms 1.734 MiB
#78 Accepted 126ms 1.672 MiB
#79 Accepted 11ms 1.711 MiB
#80 Accepted 163ms 1.867 MiB
#81 Accepted 14ms 1.766 MiB
#82 Accepted 190ms 1.68 MiB
#83 Accepted 18ms 1.883 MiB
#84 Accepted 206ms 1.652 MiB
#85 Accepted 37ms 6.836 MiB
#86 Accepted 38ms 6.926 MiB
#87 Accepted 40ms 6.922 MiB
#88 Accepted 67ms 6.91 MiB
#89 Accepted 143ms 6.938 MiB
#90 Accepted 123ms 6.836 MiB
#91 Accepted 54ms 6.824 MiB
#92 Accepted 112ms 6.844 MiB
#93 Accepted 82ms 6.848 MiB
#94 Accepted 39ms 6.84 MiB
#95 Accepted 56ms 6.84 MiB
#96 Accepted 55ms 6.91 MiB
#97 Accepted 55ms 6.961 MiB
#98 Accepted 90ms 6.984 MiB
#99 Accepted 89ms 6.895 MiB
#100 Accepted 68ms 6.832 MiB
#101 Accepted 154ms 6.965 MiB
#102 Accepted 127ms 6.922 MiB
#103 Accepted 43ms 6.91 MiB
#104 Accepted 52ms 6.84 MiB
#105 Accepted 51ms 6.918 MiB
#106 Accepted 53ms 6.902 MiB
#107 Accepted 91ms 6.922 MiB
#108 Accepted 86ms 6.922 MiB
#109 Accepted 231ms 25.312 MiB
#110 Accepted 387ms 25.32 MiB
#111 Accepted 249ms 25.258 MiB
#112 Accepted 426ms 25.246 MiB
#113 Accepted 157ms 25.246 MiB
#114 Accepted 194ms 25.25 MiB
#115 Accepted 155ms 25.414 MiB
#116 Accepted 182ms 25.27 MiB
#117 Accepted 255ms 25.316 MiB
#118 Accepted 474ms 25.195 MiB
#119 Accepted 177ms 25.328 MiB
#120 Accepted 248ms 25.32 MiB
#121 Accepted 179ms 25.285 MiB
#122 Accepted 239ms 25.25 MiB
#123 Accepted 206ms 25.344 MiB
#124 Accepted 309ms 25.254 MiB
#125 Accepted 1055ms 98.809 MiB
#126 Accepted 1794ms 98.77 MiB
#127 Accepted 736ms 98.727 MiB
#128 Accepted 890ms 98.609 MiB
#129 Accepted 969ms 98.852 MiB
#130 Accepted 1547ms 98.797 MiB
#131 Accepted 1308ms 98.891 MiB
#132 Accepted 2443ms 99.004 MiB
#133 Accepted 1120ms 98.855 MiB
#134 Accepted 2007ms 98.738 MiB
#135 Accepted 1423ms 98.902 MiB
#136 Accepted 2724ms 98.969 MiB
#137 Accepted 1319ms 98.77 MiB
#138 Accepted 2559ms 98.777 MiB
#139 Time Exceeded ≥702ms ≥98.594 MiB
#140 Accepted 791ms 98.617 MiB
#141 Accepted 2183ms 153.977 MiB
#142 Accepted 4203ms 154.066 MiB
#143 Accepted 1746ms 153.82 MiB
#144 Accepted 2976ms 153.898 MiB
#145 Time Exceeded (-9) ≥1203ms ≥153.668 MiB
#146 Accepted 1599ms 153.703 MiB
#147 Accepted 1702ms 153.906 MiB
#148 Accepted 2811ms 153.98 MiB
#149 Accepted 2118ms 153.965 MiB
#150 Accepted 4036ms 154.023 MiB
#151 Accepted 1834ms 153.875 MiB
#152 Accepted 3243ms 154.055 MiB
#153 Accepted 1394ms 153.844 MiB
#154 Accepted 2045ms 154.043 MiB
#155 Accepted 2002ms 153.812 MiB
#156 Accepted 3692ms 153.926 MiB
#157 Accepted 1878ms 153.914 MiB
#158 Accepted 3346ms 153.902 MiB
#159 Accepted 2160ms 153.906 MiB
#160 Accepted 4198ms 153.984 MiB

Information

Submit By
Type
Submission
Homework
Project Three: Priority Queue and its Application
Language
GNU Make
Submit At
2018-11-09 18:18:28
Judged At
2018-11-14 00:37:01
Judged By
Score
790
Total Time
≥81807ms
Peak Memory
≥154.066 MiB