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:87: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:213: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:209: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 820.0 KiB
#2 Wrong Answer 2ms 712.0 KiB
#3 Runtime Error (-11) 2ms 724.0 KiB
#4 Runtime Error (-11) 3ms 672.0 KiB
#5 Accepted 2ms 664.0 KiB
#6 Wrong Answer 2ms 696.0 KiB

Information

Submit By
Type
Submission
Homework
Lab05-PriorityQueues
Language
GNU Make
Submit At
2019-11-13 13:57:44
Judged At
2019-11-13 13:57:44
Judged By
Score
10
Total Time
17ms
Peak Memory
820.0 KiB