Problem dijkstra
User qifengle
Submission Time 2025-03-19 15:42:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:4:19: error: expected ‘)’ before ‘;’ token
4 | int dijkstra(int v; vector<vector<pair<int,int>>> & adj; int s; int e;){
| ~ ^
| )
dijkstra.cpp:4:53: error: ‘adj’ declared as reference but not initialized
4 | int dijkstra(int v; vector<vector<pair<int,int>>> & adj; int s; int e;){
| ^~~
dijkstra.cpp:4:71: error: expected unqualified-id before ‘)’ token
4 | int dijkstra(int v; vector<vector<pair<int,int>>> & adj; int s; int e;){
| ^
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:41:31: error: too many arguments to function ‘int dijkstra(int)’
41 | cout << dijkstra(V, adj, 1, V);
| ^
dijkstra.cpp:4:5: note: declared here
4 | int dijkst