aoc-2023/src/day_template.zig

35 lines
744 B
Zig

const aoc = @import("./aoc.zig");
const std = @import("std");
const Allocator = std.mem.Allocator;
const Input = struct {
allocator: Allocator,
fn deinit(self: Input) void { _ = self; }
};
fn parseInput(allocator: Allocator, lines: []const []const u8) !Input {
const parsed = Input {
.allocator = allocator,
};
errdefer parsed.deinit();
_ = lines;
return parsed;
}
pub fn part1(input: *aoc.Input) !aoc.Result {
const parsed = try parseInput(input.allocator, input.lines);
defer parsed.deinit();
return .{ .uint = 0 };
}
pub fn part2(input: *aoc.Input) !aoc.Result {
const parsed = try parseInput(input.allocator, input.lines);
defer parsed.deinit();
return .{ .uint = 0 };
}