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:45:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i = 0; i < nPoints; i++){
                        ~~^~~~~~~~~
/in/shortestP2P.hpp:46:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for(int j = 0; j < nPoints; j++){
                          ~~^~~~~~~~~
/in/shortestP2P.hpp:50:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i = 0; i < nEdge; i++){
                        ~~^~~~~~~
/in/shortestP2P.hpp:57:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < nPoints; i++) {
                         ~~^~~~~~~~~
/in/shortestP2P.hpp:58:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           for (int j = 0; j < nPoints; j++) {
                           ~~^~~~~~~~~
/in/shortestP2P.hpp:59:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
               for (int k = 0; k < nPoints; k++) {
                               ~~^~~~~~~~~
/in/shortestP2P.hpp:72:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(int i = 0; i < nPoints; i++) {
                        ~~^~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-09 18:55:11
Judged At
2024-08-09 18:55:11
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes