Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:75:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; i < node; ++ i ) {
                              ~~^~~~~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::ShortestPathMatrix(int)':
/in/shortestP2P.hpp:96:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int row = 0; row < size; ++ row ) {
                                    ~~~~^~~~~~
/in/shortestP2P.hpp:98:50: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (unsigned int column = 0; column < size; ++ column ) {
                                           ~~~~~~~^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2022-12-04 22:00:27
Judged At
2022-12-04 22:03:21
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes