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:60:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (int k = 0; k < V; ++k) {
                     ~~^~~
/in/shortestP2P.hpp:61:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int i = 0; i < V; ++i) {
                       ~~^~~
/in/shortestP2P.hpp:62:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int j = 0; j < V; ++j) {
                         ~~^~~
/in/shortestP2P.hpp:72:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (int i = 0; i < V; ++i) {
                     ~~^~~
/in/shortestP2P.hpp:48:26: error: 'V' is used uninitialized in this function [-Werror=uninitialized]
     for (size_t i = 0; i < V; i++) {
                        ~~^~~
/in/shortestP2P.hpp:54:26: error: 'E' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     for (size_t i = 0; i < E; i++) {
                        ~~^~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-07 08:49:31
Judged At
2024-12-07 08:49:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes