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:62:23: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
                       if (dist[i][k] != INF && dist[k][j] != INF && dist[i][j] > dist[i][k] + dist[k][j])
                       ^~
/in/shortestP2P.hpp:64:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
                           if (dist[j][j] < 0) {
                           ^~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-09 22:51:01
Judged At
2024-12-09 22:51:01
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes