Added day 10, proud of it, nice solution :)

This commit is contained in:
2024-12-10 22:49:19 +01:00
parent 832bef6497
commit b09d5fe966
6 changed files with 155 additions and 16 deletions
+4
View File
@@ -11,6 +11,10 @@ const Block = struct {
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer {
const deinit_status = gpa.deinit();
if (deinit_status == .leak) @panic("TEST FAIL");
}
const allocator = gpa.allocator();
var total_file_block: usize = 0;