Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In destructor 'ShortestP2P::~ShortestP2P()':
/in/shortestP2P.hpp:15:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
               for (int i = 0; i < vertices ; ++i) {
                               ~~^~~~~~~~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:50:7: error: 'memset' was not declared in this scope
       memset(dist, INF, sizeof dist);
       ^~~~~~
/in/shortestP2P.hpp:50:7: note: suggested alternative: 'wmemset'
       memset(dist, INF, sizeof dist);
       ^~~~~~
       wmemset
/in/shortestP2P.hpp:65:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int i = 0; i <edges ; i++) {
                       ~~^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2023-12-15 16:41:51
Judged At
2023-12-15 16:41:51
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes