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:85:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         if (A >= V || B >= V || A < 0 || B < 0)
             ~~^~~~
/in/shortestP2P.hpp:85:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         if (A >= V || B >= V || A < 0 || B < 0)
                       ~~^~~~
/in/shortestP2P.hpp:85:35: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         if (A >= V || B >= V || A < 0 || B < 0)
                                 ~~^~~
/in/shortestP2P.hpp:85:44: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         if (A >= V || B >= V || A < 0 || B < 0)
                                          ~~^~~
cc1plus: all warnings being treated as errors

Information

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