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:47:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int i=0;i<num_vertice*num_vertice;i++)
                        ~^~~~~~~~~~~~~~~~~~~~~~~~
/in/shortestP2P.hpp:49:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int j=0;j<num_vertice;j++)
                        ~^~~~~~~~~~~~
/in/shortestP2P.hpp:55:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int k=0;k<num_edge;k++){
                        ~^~~~~~~~~
/in/shortestP2P.hpp:61:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int l=0;l<num_vertice;l++){
                        ~^~~~~~~~~~~~
/in/shortestP2P.hpp:62:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
               for (int m=0;m<num_vertice;m++){
                            ~^~~~~~~~~~~~
/in/shortestP2P.hpp:63:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                   for (int n=0;n<num_vertice;n++){
                                ~^~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2022-12-10 14:53:15
Judged At
2022-12-10 14:53:15
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes