aboutsummaryrefslogtreecommitdiff
path: root/src/2016/day1/aoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/2016/day1/aoc.h')
-rw-r--r--src/2016/day1/aoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/2016/day1/aoc.h b/src/2016/day1/aoc.h
index b6e556e..b95813b 100644
--- a/src/2016/day1/aoc.h
+++ b/src/2016/day1/aoc.h
@@ -4,6 +4,7 @@
#include <math.h>
#include <set>
#include <vector>
+#include <functional>
namespace aoc2016 {
@@ -12,7 +13,7 @@ struct instruction {
left = 0,
right,
} direction;
- int distance;
+ int distance = 0;
};
struct position {