Problem dijkstra
User cheryltkx
Submission Time 2026-08-01 09:36:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:6:2: error: ‘vertor’ was not declared in this scope; did you mean ‘perror’?
6 | vertor <pair<int>int>>adj[N+5]];
| ^~~~~~
| perror
dijkstra.cpp:6:18: error: wrong number of template arguments (1, should be 2)
6 | vertor <pair<int>int>>adj[N+5]];
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’
208 | struct pair
| ^~~~
dijkstra.cpp:10:3: error: ‘adj’ was not declared in this scope
10 | adj[u].push_back({v,w});
|