summaryrefslogtreecommitdiff
path: root/05.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2021-12-05 22:53:32 +0100
committerVincent Douillet <vincent@vdouillet.fr>2021-12-05 22:53:32 +0100
commit8a8417207729cb92ae4f3038a3a8bd5e6a0c0ce7 (patch)
treea1366131e356ffadfa081c1561c968a2570a9843 /05.c
parent4c42453d856053bb49affef7c165397e5c16d9eb (diff)
add expected results to previous days
Diffstat (limited to '05.c')
-rw-r--r--05.c8
1 files changed, 4 insertions, 4 deletions
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)