Problem dijkstra
User Karax
Submission Time 2026-11-02 09:29:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘void check(long long int, long long int, long long int)’:
dijkstra.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
dijkstra.cpp:19:9: note: in expansion of macro ‘int’
19 | int edgyWeight = arr[target][k].second;
| ^~~
dijkstra.cpp:22:58: error: ‘edgyWeight’ was not declared in this scope; did you mean ‘daylight’?
22 | check(nextNode, destination, currentWeight + edgyWeight);
| ^~~~~~~~~~
| daylight