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:89:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for(unsigned int i = 0; i < graph->E; ++i){
                                     ~~^~~~~~~~~~
/in/shortestP2P.hpp:94:63: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                     if(dist[src] != INF && dist[src] + weight < dist[dest]){
/in/shortestP2P.hpp:106:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for(unsigned int i = 0; i < graph->E; i++){
                                 ~~^~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

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