Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:99:50: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if ( A == static_cast<unsigned int>(-1) || A >= V || B >= V) {
                                                ~~^~~~
/in/shortestP2P.hpp:99:60: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if ( A == static_cast<unsigned int>(-1) || A >= V || B >= V) {
                                                          ~~^~~~
cc1plus: all warnings being treated as errors

Information

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