Files
aoc/aoc.cpp
2024-12-08 22:35:49 +01:00

26 lines
653 B
C++

#include <span>
#include <vector>
#include <fstream>
#include <expected>
#include <system_error>
#include <ranges>
#include <string>
#include <algorithm>
#include <numeric>
#include "fmt/format.h"
#include "aoc/utils.hpp"
#include "sol/24/aoc.hpp"
auto entry([[maybe_unused]]std::span<char const*> const& args) -> std::expected<void, aoc::error> {
return aoc24::entry(args);
}
auto main([[maybe_unused]]int argc, [[maybe_unused]]char const* argv[]) -> int {
auto const res = entry({argv, static_cast<std::size_t>(argc)});
if (res) return 0;
fmt::print(stderr, "{}: {}\n", res.error().err.message(), res.error().msg);
return 1;
}