/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)
^
/in/shortestP2P.cc: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.cc:48:19: error: invalid types '<unresolved overloaded function type>[unsigned int]' for array subscript
if (distance[a][b] == INF){
^
/in/shortestP2P.cc:52:23: error: invalid types '<unresolved overloaded function type>[unsigned int]' for array subscript
else if(distance[a][b]!=INF){
^
/in/shortestP2P.cc:54:27: error: invalid types '<unresolved overloaded function type>[unsigned int]' for array subscript
cout << distance[a][b] << endl;
^