Problem | mrt |
---|---|
User | SheepHeads |
Submission Time | 2024-01-21 16:13:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mrt.cpp: In function ‘int main()’:
mrt.cpp:48:31: error: invalid initialization of reference of type ‘std::vector<std::pair<int, int> > (&)[]’ from expression of type ‘std::vector<std::pair<int, int> > [n]’
48 | cout << dijkstraQueue(x, y, arr, vec);
| ^~~
mrt.cpp:4:66: note: in passing argument 3 of ‘int dijkstraQueue(int&, int&, std::vector<std::pair<int, int> > (&)[], std::vector<int>)’
4 | int dijkstraQueue(int &start, int &end, vector<pair<int, int>> (&arr)[], vector<int> vec){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~