Record Detail

Wrong Answer

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -std=c++11 -o main.o -c main.cpp 
main.cpp: In function 'int main(int, char**)':
main.cpp:67:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<nodes.size();++i)
                 ~^~~~~~~~~~~~~
g++ -g -Wall -O2 -std=c++11 -o args.o -c args.cpp 
args.cpp: In function 'bool dfs(node_type*)':
args.cpp:22:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0; i<node->edges.size(); ++i)
                  ~^~~~~~~~~~~~~~~~~~~
args.cpp: In function 'bool check_DAG(std::vector<node_type*>&)':
args.cpp:42:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0; i<nodes.size(); ++i)
                  ~^~~~~~~~~~~~~
args.cpp: In function 'int get_weight(std::vector<node_type*>&)':
args.cpp:115:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<nodes.size();++i)
                 ~^~~~~~~~~~~~~
args.cpp:144:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0; i<v->edges.size(); ++i)
                      ~^~~~~~~~~~~~~~~~
g++ -g -Wall -O2 -std=c++11 -o main main.o args.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted 1ms 380.0 KiB
#2 Accepted 1ms 376.0 KiB
#3 Wrong Answer 1ms 404.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 468.0 KiB

Information

Submit By
Type
Submission
Homework
Project Five: Graph Algorithms
Language
GNU Make
Submit At
2018-12-13 21:07:34
Judged At
2018-12-13 21:07:34
Judged By
Score
20
Total Time
9ms
Peak Memory
468.0 KiB