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:66:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for(int i = 0; i < vert_num; ++i){
                  ~~^~~~~~~~~~
/in/shortestP2P.hpp:67:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for(int j = 0; j < vert_num; ++j){
                    ~~^~~~~~~~~~
/in/shortestP2P.hpp:78:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for(int i = 0; i < edge_num; ++i){
                  ~~^~~~~~~~~~
/in/shortestP2P.hpp:90:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for(int k = 0; k < vert_num; k++){
                  ~~^~~~~~~~~~
/in/shortestP2P.hpp:91:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for(int i = 0; i < vert_num; i++){
                    ~~^~~~~~~~~~
/in/shortestP2P.hpp:92:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for(int j = 0; j< vert_num; j++){
                      ~^~~~~~~~~~
/in/shortestP2P.hpp:98:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for(int i = 0; i < vert_num; i++){
                  ~~^~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2023-12-08 19:27:13
Judged At
2023-12-08 19:27:13
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes