diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/dijkstra.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<pii, vector<pii>, greater<pii> > pq; vector<int> dist(INF, INF); - previous.resize(V); + previous.resize(V); pq.push(make_pair(0, src)); dist[src] = 0; while(!pq.empty()) { |