Problem sealevel
User SheepHeads
Submission Time 2024-01-27 17:08:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp: In function ‘int main()’:
sealevel.cpp:61:36: 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]’
61 | mp[x] = dijkstra(n, x, adjList);
| ^~~~~~~
sealevel.cpp:5:72: note: in passing argument 3 of ‘std::vector<long long int> dijkstra(long long int&, long long int&, std::vector<std::pair<long long int, long long int> > (&)[])’
5 | vector<int> dijkstra(int &nodes, int &source, vector<pair<int, int>> (&adjList)[]){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~