Problem dijkstra
User DihydrogenMonoxide
Submission Time 2022-12-28 01:27:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:3:5: error: ‘vector’ does not name a type
3 | vector<pair<int, int> > adjList [1000000];
| ^~~~~~
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:14:9: error: ‘adjList’ was not declared in this scope; did you mean ‘dist’?
14 | adjList[a].push_back(make_pair(b,w));
| ^~~~~~~
| dist
dijkstra.cpp:28:23: error: ‘adjList’ was not declared in this scope; did you mean ‘dist’?
28 | for (auto i : adjList[c.second]) {
| ^~~~~~~
| dist