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:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int k=0;k<vertexNum;k++){          //intermediate node
                      ~^~~~~~~~~~
/in/shortestP2P.hpp:78:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int i=0;i<vertexNum;i++){        //source node
                        ~^~~~~~~~~~
/in/shortestP2P.hpp:79:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (int j=0;j<vertexNum;j++){      //destination node
                          ~^~~~~~~~~~
/in/shortestP2P.hpp:90:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int 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:47:48
Judged At
2024-08-09 12:47:48
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes