diff options
Diffstat (limited to 'src/2022/day12/aoc.cpp')
-rw-r--r-- | src/2022/day12/aoc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/2022/day12/aoc.cpp b/src/2022/day12/aoc.cpp index 7b79e94..4cc388d 100644 --- a/src/2022/day12/aoc.cpp +++ b/src/2022/day12/aoc.cpp @@ -12,11 +12,11 @@ std::pair<int, int> day12(line_view file) { }); // hm.print(); - std::vector<heightmap::pos> ps; - hm.find_prev(0, hm.end, ps); + std::vector<int> steps; + hm.find(hm.end, steps); - for (auto &p : ps) { - printf("%d %d\n", p.x, p.y); + for(auto& i : steps) { + printf("%d\n", i); } return {0, 0}; } |