Record Detail

Compile Error

/in/shortestP2P.cc: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.cc:11:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; i < size; i++){
                              ~~^~~~~~
/in/shortestP2P.cc:15:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int m = 0; m < size; m++){
                              ~~^~~~~~
/in/shortestP2P.cc:16:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int j = 0; j < size; j++){
                                  ~~^~~~~~
/in/shortestP2P.cc:24:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int n = 0; n < edge; n++){
                              ~~^~~~~~
/in/shortestP2P.cc:30:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int k = 0; k < size; k++){
                              ~~^~~~~~
/in/shortestP2P.cc:31:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int a = 0; a < size; a++){
                                  ~~^~~~~~
/in/shortestP2P.cc:32:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (unsigned int b = 0; b < size; b++){
                                      ~~^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2021-12-10 21:47:10
Judged At
2021-12-10 21:47:10
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes