Record Detail

Compile Error

/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
 }
 ^

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2022-07-31 19:44:18
Judged At
2022-07-31 19:44:18
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes