Problem mrt
User SheepHeads
Submission Time 2024-01-22 21:20:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp: In function ‘int main()’:
mrt.cpp:52:32: error: invalid initialization of reference of type ‘std::vector<std::pair<long long int, long long int> > (&)[]’ from expression of type ‘std::vector<std::pair<long long int, long long int> > [n]’
52 | mp[x] = dijkstraQueue(x, y, arr, vec);
| ^~~
mrt.cpp:5:74: note: in passing argument 3 of ‘std::vector<long long int> dijkstraQueue(long long int&, long long int&, std::vector<std::pair<long long int, long long int> > (&)[], std::vector<long long int>)’
5 | vector<int> dijkstraQueue(int &start, int &end, vector<pair<int, int>> (&arr)[], vector<int> vec){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~