aoc24: day02b complete

This commit is contained in:
2024-12-08 22:35:49 +01:00
parent 5c692fe727
commit a1d5d359f2
14 changed files with 342 additions and 148 deletions

View File

@@ -6,7 +6,8 @@
#include <vector>
#include <span>
#include "aoc/aoc.hpp"
#include "aoc.hpp"
#include "aoc/utils.hpp"
#include "fmt/format.h"
#include "ctre.hpp"
@@ -121,7 +122,7 @@ auto read_text_matnxn(std::string const& path) -> matnxn {
}
}
auto aoc::entry([[maybe_unused]]std::span<char const*> const& args) -> void {
auto aoc24::day04([[maybe_unused]]std::span<char const*> const& args) -> std::expected<void, aoc::error> {
auto source = cms::read_text_matnxn("./dat/24/ex/04.txt");
cms::vecn hpat{'X', 'M', 'A', 'S'};
@@ -155,5 +156,6 @@ auto aoc::entry([[maybe_unused]]std::span<char const*> const& args) -> void {
// }
// fmt::print("\n");
// }
return {};
}