Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::floyd_warshall()':
/in/shortestP2P.hpp:103:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int k = 0; k < node_num; k++)
                              ~~^~~~~~~~~~
/in/shortestP2P.hpp:104:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (unsigned int i = 0; i < node_num; i++)
                                ~~^~~~~~~~~~
/in/shortestP2P.hpp:105:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int j = 0; j < node_num; j++)
                                  ~~^~~~~~~~~~
cc1plus: all warnings being treated as errors
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::floyd_warshall()':
/in/shortestP2P.hpp:103:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int k = 0; k < node_num; k++)
                              ~~^~~~~~~~~~
/in/shortestP2P.hpp:104:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (unsigned int i = 0; i < node_num; i++)
                                ~~^~~~~~~~~~
/in/shortestP2P.hpp:105:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int j = 0; j < node_num; j++)
                                  ~~^~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2021-12-14 19:56:35
Judged At
2021-12-14 19:56:35
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes