From adc95c8d0442703b60c0ffd28c089743df38056f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 9 Sep 2020 23:44:53 -0700 Subject: [PATCH] Initialize graph indegree. --- 13/graph.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/13/graph.hpp b/13/graph.hpp index 2807442..8a654aa 100644 --- a/13/graph.hpp +++ b/13/graph.hpp @@ -23,6 +23,8 @@ class function_graph { std::set functions; std::set adjacency_list; size_t indegree; + + group_data() : indegree(0) {} }; using data_ptr = std::shared_ptr;