aboutsummaryrefslogtreecommitdiffstats
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh20
1 files changed, 16 insertions, 4 deletions
diff --git a/init.sh b/init.sh
index 5239b81..dacf6cb 100755
--- a/init.sh
+++ b/init.sh
@@ -18,11 +18,23 @@ echo \
18 'const std = @import("std"); 18 'const std = @import("std");
19const print = std.debug.print; 19const print = std.debug.print;
20const assert = std.debug.assert; 20const assert = std.debug.assert;
21const ArrayList = std.ArrayList;
21const mem = std.mem; 22const mem = std.mem;
22const input = @embedFile("./input.txt"); 23
24const fin = mem.trim(u8, @embedFile("./input.txt"), &std.ascii.whitespace);
25var gpa = std.heap.GeneralPurposeAllocator(.{}){};
26const allocator = gpa.allocator();
27
28pub fn part1() void {
29
30}
31
32pub fn part2() void {
33
34}
23 35
24pub fn main() !void { 36pub fn main() !void {
25 var gpa = std.heap.GeneralPurposeAllocator(.{}){}; 37
26 defer _ = gpa.deinit(); 38 part1();
27 var alloc = gpa.allocator(); 39 part2();
28}' >$DIR/solution.zig 40}' >$DIR/solution.zig