Problem mrt
User YSH2020
Submission Time 2023-07-15 15:25:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp:28:6: error: no declaration matches ‘void Graph::shortestPath(int, int)’
28 | void Graph::shortestPath(int src, int q) {
| ^~~~~
mrt.cpp:15:10: note: candidate is: ‘void Graph::shortestPath(int)’
15 | void shortestPath(int s);
| ^~~~~~~~~~~~
mrt.cpp:7:7: note: ‘class Graph’ defined here
7 | class Graph {
| ^~~~~
mrt.cpp: In function ‘int main()’:
mrt.cpp:59:28: error: no matching function for call to ‘Graph::shortestPath(int&, int&)’
59 | g.shortestPath(a, b);
| ^
mrt.cpp:15:10: note: candidate: ‘void Graph::shortestPath(int)’
15 | void shortestPath(int s);
| ^~~~~~~~~~~~
mrt.cpp:15:10: note: candidate expects 1 argument, 2 provided