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:63:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; i < V; ++i) {
                              ~~^~~
/in/shortestP2P.hpp:67:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; i < E; ++i) {
                              ~~^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::Solve()':
/in/shortestP2P.hpp:89:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int k = 0; k < V; ++k) {
                              ~~^~~
/in/shortestP2P.hpp:90:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (unsigned int i = 0; i < V; ++i) {
                                ~~^~~
/in/shortestP2P.hpp:97:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (unsigned int j = 0; j < V; ++j) {
                                  ~~^~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-19 20:03:54
Judged At
2024-12-19 20:03:54
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes