Record Detail

Runtime Error

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:69:12: warning: value computed is not used [-Wunused-value]
         PQ == new unsorted_heap<point *, point::compare_t>();
         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from main.cpp:7:0:
fib_heap.h: In instantiation of 'void fib_heap<TYPE, COMP>::consolidate() [with TYPE = point*; COMP = point::compare_t]':
fib_heap.h:225:11:   required from 'TYPE fib_heap<TYPE, COMP>::dequeue_min() [with TYPE = point*; COMP = point::compare_t]'
main.cpp:176:1:   required from here
fib_heap.h:141:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (auto i=0; i < this->n; i++) {
                    ~~^~~~~~~~~
fib_heap.h:170:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (auto i=0; i < this->n; i++){
                    ~~^~~~~~~~~
main.cpp:172:12: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
     delete PQ;
            ^~
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 692.0 KiB
#2 Accepted 2ms 648.0 KiB
#3 Runtime Error (-11) 3ms 624.0 KiB
#4 Runtime Error (-11) 3ms 716.0 KiB
#5 Accepted 2ms 688.0 KiB
#6 Accepted 2ms 724.0 KiB

Information

Submit By
Type
Submission
Homework
Lab05-PriorityQueues
Language
GNU Make
Submit At
2019-11-13 14:02:06
Judged At
2019-11-13 14:02:06
Judged By
Score
20
Total Time
16ms
Peak Memory
724.0 KiB