Problem dijkstra
User Mischa
Submission Time 2023-11-16 09:34:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:24:19: error: expected initializer before ‘-’ token
24 | int edgeweight -i.second;
| ^
dijkstra.cpp:25:44: error: ‘edgeweight’ was not declared in this scope
25 | if (dist[i.first] == -1 or dist[node] + edgeweight < dist[i.first]){
| ^~~~~~~~~~