From 8a8417207729cb92ae4f3038a3a8bd5e6a0c0ce7 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Sun, 5 Dec 2021 22:53:32 +0100 Subject: add expected results to previous days --- 05.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '05.c') diff --git a/05.c b/05.c index eeac8ce..3e9aa10 100644 --- a/05.c +++ b/05.c @@ -5,8 +5,8 @@ #include "input.h" #define INPUT "input/05.txt" -#define EXPECTED1 6113 -#define EXPECTED2 20373 +#define EXPECTED1 6113L +#define EXPECTED2 20373L #define RESOLUTION 1000 @@ -61,7 +61,7 @@ void part1(struct input_str* input) { } // count space points with at least a value of 2 - int result = 0; + long result = 0; for(int x = 0; x < RESOLUTION; x++) { for(int y = 0; y < RESOLUTION; y++) { if(space1[x][y] >= 2) @@ -91,7 +91,7 @@ void part2(struct input_str* input) { } // count space points with at least a value of 2 - int result = 0; + long result = 0; for(int x = 0; x < RESOLUTION; x++) { for(int y = 0; y < RESOLUTION; y++) { if(space2[x][y] >= 2) -- cgit v1.2.3