aboutsummaryrefslogtreecommitdiff
path: root/src/2021/day9/aoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2021/day9/aoc.cpp')
-rw-r--r--src/2021/day9/aoc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2021/day9/aoc.cpp b/src/2021/day9/aoc.cpp
index d8f6735..d4297ac 100644
--- a/src/2021/day9/aoc.cpp
+++ b/src/2021/day9/aoc.cpp
@@ -1,7 +1,7 @@
#include "aoc.h"
namespace aoc2021 {
-
+int heightmap::areas[grid * grid] = {0};
std::pair<int, int> day9(line_view file) {
heightmap hm;
int r{0};
@@ -11,7 +11,7 @@ std::pair<int, int> day9(line_view file) {
return true;
});
- return {hm.risks(), 0};
+ return {hm.risks(), hm.top3()};
}
}