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:46:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i=0;i<n_v;i++)
                     ~^~~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::initMatrix()':
/in/shortestP2P.hpp:88:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i=0;i<n_v;i++)
                     ~^~~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::findShortest()':
/in/shortestP2P.hpp:96:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int k=0;k<n_v;k++)
                     ~^~~~
/in/shortestP2P.hpp:98:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for(int i=0;i<n_v;i++)
                         ~^~~~
/in/shortestP2P.hpp:100:30: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                 for(int j=0;j<n_v;j++)
                             ~^~~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::judgeValid()':
/in/shortestP2P.hpp:113:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i=0;i<n_v;i++)
                     ~^~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2022-12-09 23:05:16
Judged At
2022-12-09 23:05:16
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes