Record Detail

Compile Error

/in/driver/main.cpp: In function 'int main()':
/in/driver/main.cpp:6:14: error: no matching function for call to 'ShortestP2P::ShortestP2P()'
  ShortestP2P a;
              ^
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:23:5: note: candidate: ShortestP2P::ShortestP2P(const ShortestP2P::Graph&)
     ShortestP2P(const Graph& graph) : G(graph) {}
     ^~~~~~~~~~~
/in/shortestP2P.hpp:23:5: note:   candidate expects 1 argument, 0 provided
/in/shortestP2P.hpp:9:7: note: candidate: ShortestP2P::ShortestP2P(const ShortestP2P&)
 class ShortestP2P {
       ^~~~~~~~~~~
/in/shortestP2P.hpp:9:7: note:   candidate expects 1 argument, 0 provided
/in/shortestP2P.hpp:9:7: note: candidate: ShortestP2P::ShortestP2P(ShortestP2P&&)
/in/shortestP2P.hpp:9:7: note:   candidate expects 1 argument, 0 provided

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-09 03:38:39
Judged At
2024-08-09 03:38:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes