In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:44:2: error: 'vector' does not name a type; did you mean 'perror'?
vector<vector<int>> dist;
^~~~~~
perror
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:12:3: error: 'dist' was not declared in this scope
dist.assign(V, vector<int>(V, INF));
^~~~
/in/shortestP2P.hpp:12:3: note: suggested alternative: 'int'
dist.assign(V, vector<int>(V, INF));
^~~~
int
/in/shortestP2P.hpp:12:18: error: 'vector' was not declared in this scope
dist.assign(V, vector<int>(V, INF));
^~~~~~
/in/shortestP2P.hpp:12:18: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from /in/shortestP2P.hpp:1,
from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:12:25: error: expected primary-expression before 'int'
dist.assign(V, vector<int>(V, INF));
^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:34:7: error: 'dist' was not declared in this scope
if (dist[A][B] == INF) {
^~~~
/in/shortestP2P.hpp:34:7: note: suggested alternative: 'int'
if (dist[A][B] == INF) {
^~~~
int
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::floydWarshall()':
/in/shortestP2P.hpp:49:10: error: 'dist' was not declared in this scope
if (dist[i][k] != INF && dist[k][j] != INF && dist[i][k] + dist[k][j] < dist[i][j]) {
^~~~
/in/shortestP2P.hpp:49:10: note: suggested alternative: 'int'
if (dist[i][k] != INF && dist[k][j] != INF && dist[i][k] + dist[k][j] < dist[i][j]) {
^~~~
int
/in/shortestP2P.hpp:54:8: error: 'dist' was not declared in this scope
if (dist[k][k] < 0) {
^~~~
/in/shortestP2P.hpp:54:8: note: suggested alternative: 'int'
if (dist[k][k] < 0) {
^~~~
int
/in/driver/main.cpp: In function 'int main()':
/in/driver/main.cpp:11:2: error: 'cin' was not declared in this scope
cin >> A;
^~~
/in/driver/main.cpp:11:2: note: suggested alternative: 'main'
cin >> A;
^~~
main