From 6c6abed6cb4f0b6de4fcd065af38027d86fc82c0 Mon Sep 17 00:00:00 2001 From: Orfeas <38209077+0xfea5@users.noreply.github.com> Date: Sun, 3 Dec 2023 09:43:22 +0200 Subject: day3 --- init.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'init.sh') diff --git a/init.sh b/init.sh index 5239b81..dacf6cb 100755 --- a/init.sh +++ b/init.sh @@ -18,11 +18,23 @@ echo \ 'const std = @import("std"); const print = std.debug.print; const assert = std.debug.assert; +const ArrayList = std.ArrayList; const mem = std.mem; -const input = @embedFile("./input.txt"); + +const fin = mem.trim(u8, @embedFile("./input.txt"), &std.ascii.whitespace); +var gpa = std.heap.GeneralPurposeAllocator(.{}){}; +const allocator = gpa.allocator(); + +pub fn part1() void { + +} + +pub fn part2() void { + +} pub fn main() !void { - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - defer _ = gpa.deinit(); - var alloc = gpa.allocator(); + + part1(); + part2(); }' >$DIR/solution.zig -- cgit v1.2.3