/in/driver/main.cpp:3:7: error: expected nested-name-specifier before 'namespace'
using namespace std;
^~~~~~~~~
/in/driver/main.cpp:18:1: error: expected '}' at end of input
}
^
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:92:32: error: a function-definition is not allowed here before '{' token
void distance(int A, int B){
^
/in/shortestP2P.hpp:105:1: error: expected primary-expression before 'private'
private:
^~~~~~~
/in/driver/main.cpp: In member function 'int ShortestP2P::main()':
/in/driver/main.cpp:14:5: error: 'class ShortestP2P' has no member named 'distance'
a.distance(A, B);
^~~~~~~~
/in/driver/main.cpp: At global scope:
/in/driver/main.cpp:18:1: error: expected unqualified-id at end of input
}
^