Record Detail

Compile Error

/in/shortestP2P.cc: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.cc:13:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
             distance[index][i] = INF;
                           ^
/in/shortestP2P.cc:22:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         distance[x][y] = weight;
                   ^
/in/shortestP2P.cc:31:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (distance[i][j] > distance[i][index] + distance[index][j] && distance[i][index] < INF && distance[index][j] < INF)
                               ^
/in/shortestP2P.cc:31:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (distance[i][j] > distance[i][index] + distance[index][j] && distance[i][index] < INF && distance[index][j] < INF)
                                                ^
/in/shortestP2P.cc:31:73: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (distance[i][j] > distance[i][index] + distance[index][j] && distance[i][index] < INF && distance[index][j] < INF)
                                                                         ^
/in/shortestP2P.cc:31:91: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (distance[i][j] > distance[i][index] + distance[index][j] && distance[i][index] < INF && distance[index][j] < INF)
                                                                                           ^
/in/shortestP2P.cc:31:123: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (distance[i][j] > distance[i][index] + distance[index][j] && distance[i][index] < INF && distance[index][j] < INF)
                                                                                                                           ^
/in/shortestP2P.cc:34:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                     distance[i][j] = distance[i][index] + distance[index][j];
                               ^
/in/shortestP2P.cc:34:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                     distance[i][j] = distance[i][index] + distance[index][j];
                                                ^
/in/shortestP2P.cc:34:73: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                     distance[i][j] = distance[i][index] + distance[index][j];
                                                                         ^
/in/shortestP2P.cc:36:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 if (i == j && distance[i][j] < 0)
                                         ^

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2021-12-14 17:37:17
Judged At
2021-12-14 17:37:17
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes