In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:123:15: error: declaration of 'edge' as multidimensional array must have bounds for all dimensions except the first
int *edge[][];
^
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In destructor 'ShortestP2P::~ShortestP2P()':
/in/shortestP2P.hpp:15:27: error: 'edge' was not declared in this scope
~ShortestP2P() { delete edge; }
^~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:45:5: error: 'edge' was not declared in this scope
edge[][] = new int[num_v][num_v];
^~~~
/in/shortestP2P.hpp:45:10: error: expected primary-expression before ']' token
edge[][] = new int[num_v][num_v];
^
/in/shortestP2P.hpp:45:12: error: expected primary-expression before ']' token
edge[][] = new int[num_v][num_v];
^
/in/shortestP2P.hpp:45:36: error: ISO C++ forbids variable length array [-Werror=vla]
edge[][] = new int[num_v][num_v];
^
/in/shortestP2P.hpp:45:36: error: array size in new-expression must be constant
/in/shortestP2P.hpp:45:36: error: 'this' is not a constant expression
/in/shortestP2P.hpp:47:7: error: expected '(' before 'for'
for (unsigned int i = 0; i < num_v; i++)
^~~
/in/shortestP2P.hpp:47:7: error: expected primary-expression before 'for'
/in/shortestP2P.hpp:47:32: error: 'i' was not declared in this scope
for (unsigned int i = 0; i < num_v; i++)
^
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:110:9: error: 'edge' was not declared in this scope
if (edge[A][B] == INF)
^~~~
cc1plus: all warnings being treated as errors