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:56:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto i=0;i<vertexNum;i++){
                       ~^~~~~~~~~~
/in/shortestP2P.hpp:59:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto i=0;i<vertexNum;i++){
                       ~^~~~~~~~~~
/in/shortestP2P.hpp:60:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (auto j=0; j<vertexNum;j++){
                          ~^~~~~~~~~~
/in/shortestP2P.hpp:64:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto i=0;i<vertexNum;i++){
                       ~^~~~~~~~~~
/in/shortestP2P.hpp:72:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto i=0;i<edgeNum;i++){
                       ~^~~~~~~~
/in/shortestP2P.hpp:77:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto k=0;k<vertexNum;k++){          //intermediate node
                       ~^~~~~~~~~~
/in/shortestP2P.hpp:78:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (auto i=0;i<vertexNum;i++){        //source node
                         ~^~~~~~~~~~
/in/shortestP2P.hpp:79:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (auto j=0;j<vertexNum;j++){      //destination node
                           ~^~~~~~~~~~
/in/shortestP2P.hpp:90:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (auto i=0;i<vertexNum;i++){
                       ~^~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-09 12:48:37
Judged At
2024-08-09 12:48:37
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes