Problem dijkstra
User usernamehere
Submission Time 2025-11-10 15:38:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘std::vector<long long int> dijkstra(ll)’:
dijkstra.cpp:7:18: error: ‘v’ was not declared in this scope
7 | vector<ll> dist(v, LLONG_MAX);
| ^
dijkstra.cpp:8:24: error: ‘e’ was not declared in this scope
8 | for (ll i = 0; i < e; i++){
| ^
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:36:25: error: ‘n’ was not declared in this scope
36 | cout << dijkstra(0)[n-1] << '\n';
| ^