diff options
Diffstat (limited to '05.c')
-rw-r--r-- | 05.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |