Problem dijkstra
User DihydrogenMonoxide
Submission Time 2022-12-28 01:58:54
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]; //node, weight. size of array is max number of edges
| ^~~~~~
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:19:9: error: ‘adjlist’ was not declared in this scope; did you mean ‘dist’?
19 | adjlist[a].push_back(make_pair(b,w));
| ^~~~~~~
| dist
dijkstra.cpp:31:23: error: ‘adjlist’ was not declared in this scope; did you mean ‘dist’?
31 | for (auto i : adjlist[c.second]) {
| ^~~~~~~
| dist