From 673f60aef1b46f436b9364ace8a9a0a97d9d0620 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 8 Oct 2017 08:29:27 +0200 Subject: Update dijkstra.cc --- cpp/dijkstra.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/dijkstra.cc b/cpp/dijkstra.cc index 8fed8c0..8aa6329 100644 --- a/cpp/dijkstra.cc +++ b/cpp/dijkstra.cc @@ -16,7 +16,7 @@ int dijkstra(int src, int dest) { priority_queue, greater > pq; vector dist(INF, INF); - previous.resize(V); + previous.resize(V); pq.push(make_pair(0, src)); dist[src] = 0; while(!pq.empty()) { -- cgit v1.2.3-18-g5258