diff options
Diffstat (limited to 'src/2015/day24/aoc.cpp')
-rw-r--r-- | src/2015/day24/aoc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/2015/day24/aoc.cpp b/src/2015/day24/aoc.cpp index 81baeb8..344660f 100644 --- a/src/2015/day24/aoc.cpp +++ b/src/2015/day24/aoc.cpp @@ -3,7 +3,7 @@ namespace aoc2015 { -int get_number(const char* p) { +static int get_number(const char* p) { int d{0}; while(*p >= '0' && *p <= '9') { d = d * 10 + *p - '0'; @@ -18,8 +18,7 @@ std::pair<int, int> day24(line_view file) { total += get_number(lv.line); return true; }); - int sub = total / 3; - return {total, 0}; + return {0, 0}; } } |