Record Detail

Wrong Answer

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
In file included from main.cpp:5:0:
binary_heap.h: In instantiation of 'void binary_heap<TYPE, COMP>::percolate_down(binary_heap<TYPE, COMP>::size_type) [with TYPE = cell; COMP = compare_t; binary_heap<TYPE, COMP>::size_type = unsigned int]':
binary_heap.h:107:8:   required from 'TYPE binary_heap<TYPE, COMP>::dequeue_min() [with TYPE = cell; COMP = compare_t]'
main.cpp:151:1:   required from here
binary_heap.h:75:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (minindex != index) {
       ~~~~~~~~~^~~~~~~~
main.cpp: In function 'int main(int, char**)':
main.cpp:82:13: warning: 'PQ' may be used uninitialized in this function [-Wmaybe-uninitialized]
  PQ->enqueue(map[s_y][s_x]);
  ~~~~~~~~~~~^~~~~~~~~~~~~~~
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 652.0 KiB
#2 Wrong Answer 4ms 880.0 KiB
#3 Accepted 4ms 684.0 KiB
#4 Wrong Answer 3ms 660.0 KiB
#5 Accepted 3ms 612.0 KiB
#6 Wrong Answer 2ms 792.0 KiB

Information

Submit By
Type
Submission
Homework
Lab05-PriorityQueues
Language
GNU Make
Submit At
2019-11-13 08:59:57
Judged At
2019-11-13 08:59:57
Judged By
Score
15
Total Time
20ms
Peak Memory
880.0 KiB