Record Detail

Runtime Error

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -c main.cpp
main.cpp: In function 'int main()':
main.cpp:86:45: warning: 'endvertex' may be used uninitialized in this function [-Wmaybe-uninitialized]
         endvertex->undirectednb.emplace_back(pair<node *, int>(startvertex, weight));
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:83:51: warning: 'startvertex' may be used uninitialized in this function [-Wmaybe-uninitialized]
         startvertex->directedneighbor.emplace_back(pair<node *, int>(endvertex, weight));
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -o main main.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Runtime Error (-6) 1ms 460.0 KiB
#2 Wrong Answer 1ms 392.0 KiB
#3 Runtime Error (-11) 1ms 512.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Wrong Answer 1ms 472.0 KiB

Information

Submit By
Type
Submission
Homework
Project Five: Graph Algorithms
Language
GNU Make
Submit At
2018-12-08 23:22:04
Judged At
2018-12-08 23:22:04
Judged By
Score
5
Total Time
9ms
Peak Memory
512.0 KiB