Problem dijkstra
User SheepHeads
Submission Time 2024-01-21 15:22:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:46:23: error: invalid initialization of reference of type ‘std::vector<std::pair<int, int> > (&)[]’ from expression of type ‘std::vector<std::pair<int, int> > [n]’
46 | dijkstraQueue(start, arr, vec);
| ^~~
dijkstra.cpp:4:57: note: in passing argument 2 of ‘void dijkstraQueue(int&, std::vector<std::pair<int, int> > (&)[], std::vector<int>&)’
4 | void dijkstraQueue(int &start, vector<pair<int, int>> (&arr)[], vector<int> (&vec)){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~