diff --git a/.gitignore b/.gitignore
index c508b3f..77b4210 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,4 +6,5 @@ build
.clangd
cmake-build-*
tmpget.sh
-get_day.sh
\ No newline at end of file
+get_day.sh
+.idea
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 13566b8..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Editor-based HTTP Client requests
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/advent.iml b/.idea/advent.iml
deleted file mode 100644
index f08604b..0000000
--- a/.idea/advent.iml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/.idea/editor.xml b/.idea/editor.xml
deleted file mode 100644
index a4fac68..0000000
--- a/.idea/editor.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 79b3c94..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 0b5a324..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 3377838..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/2023/01.c b/src/2023/01.c
index aa70fee..36382ba 100644
--- a/src/2023/01.c
+++ b/src/2023/01.c
@@ -4,7 +4,10 @@
#include "lfinput.h"
void advent2023day01(void) {
- char *input = get_input("input/2023/01");
- printf("Solution for Day 01 of 2023 is not completed yet\n");
- free(input);
+ size_t sz = 0;
+ char **lines = get_lines("input/2023/01", &sz);
+
+
+
+ del_lines(lines);
}
diff --git a/src/2023/02.c b/src/2023/02.c
index ab365cb..2b45a32 100644
--- a/src/2023/02.c
+++ b/src/2023/02.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day02(void) {
- char *input = get_input("input/2023/02");
- printf("Solution for Day 02 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/02");
+ printf("Solution for Day 02 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/03.c b/src/2023/03.c
index 47c52cb..1f04efe 100644
--- a/src/2023/03.c
+++ b/src/2023/03.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day03(void) {
- char *input = get_input("input/2023/03");
- printf("Solution for Day 03 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/03");
+ printf("Solution for Day 03 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/04.c b/src/2023/04.c
index ebca28d..7d3bfea 100644
--- a/src/2023/04.c
+++ b/src/2023/04.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day04(void) {
- char *input = get_input("input/2023/04");
- printf("Solution for Day 04 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/04");
+ printf("Solution for Day 04 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/05.c b/src/2023/05.c
index b03b644..74bfd93 100644
--- a/src/2023/05.c
+++ b/src/2023/05.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day05(void) {
- char *input = get_input("input/2023/05");
- printf("Solution for Day 05 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/05");
+ printf("Solution for Day 05 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/06.c b/src/2023/06.c
index c1395d1..fba38ea 100644
--- a/src/2023/06.c
+++ b/src/2023/06.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day06(void) {
- char *input = get_input("input/2023/06");
- printf("Solution for Day 06 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/06");
+ printf("Solution for Day 06 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/07.c b/src/2023/07.c
index 8f21dd1..20cd467 100644
--- a/src/2023/07.c
+++ b/src/2023/07.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day07(void) {
- char *input = get_input("input/2023/07");
- printf("Solution for Day 07 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/07");
+ printf("Solution for Day 07 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/08.c b/src/2023/08.c
index 3da34a6..c977346 100644
--- a/src/2023/08.c
+++ b/src/2023/08.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day08(void) {
- char *input = get_input("input/2023/08");
- printf("Solution for Day 08 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/08");
+ printf("Solution for Day 08 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/09.c b/src/2023/09.c
index a62c542..b09fe36 100644
--- a/src/2023/09.c
+++ b/src/2023/09.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day09(void) {
- char *input = get_input("input/2023/09");
- printf("Solution for Day 09 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/09");
+ printf("Solution for Day 09 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/10.c b/src/2023/10.c
index 36e9e3f..0269b83 100644
--- a/src/2023/10.c
+++ b/src/2023/10.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day10(void) {
- char *input = get_input("input/2023/10");
- printf("Solution for Day 10 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/10");
+ printf("Solution for Day 10 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/11.c b/src/2023/11.c
index 5255835..bf9f7d4 100644
--- a/src/2023/11.c
+++ b/src/2023/11.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day11(void) {
- char *input = get_input("input/2023/11");
- printf("Solution for Day 11 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/11");
+ printf("Solution for Day 11 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/12.c b/src/2023/12.c
index cf0be17..855605d 100644
--- a/src/2023/12.c
+++ b/src/2023/12.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day12(void) {
- char *input = get_input("input/2023/12");
- printf("Solution for Day 12 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/12");
+ printf("Solution for Day 12 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/13.c b/src/2023/13.c
index 8343699..1c3a584 100644
--- a/src/2023/13.c
+++ b/src/2023/13.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day13(void) {
- char *input = get_input("input/2023/13");
- printf("Solution for Day 13 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/13");
+ printf("Solution for Day 13 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/14.c b/src/2023/14.c
index 81c4d5d..1a52e8d 100644
--- a/src/2023/14.c
+++ b/src/2023/14.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day14(void) {
- char *input = get_input("input/2023/14");
- printf("Solution for Day 14 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/14");
+ printf("Solution for Day 14 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/15.c b/src/2023/15.c
index d156446..16715a0 100644
--- a/src/2023/15.c
+++ b/src/2023/15.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day15(void) {
- char *input = get_input("input/2023/15");
- printf("Solution for Day 15 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/15");
+ printf("Solution for Day 15 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/16.c b/src/2023/16.c
index 6805f70..d3d75c3 100644
--- a/src/2023/16.c
+++ b/src/2023/16.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day16(void) {
- char *input = get_input("input/2023/16");
- printf("Solution for Day 16 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/16");
+ printf("Solution for Day 16 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/17.c b/src/2023/17.c
index d614779..d9e88de 100644
--- a/src/2023/17.c
+++ b/src/2023/17.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day17(void) {
- char *input = get_input("input/2023/17");
- printf("Solution for Day 17 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/17");
+ printf("Solution for Day 17 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/18.c b/src/2023/18.c
index 11f565c..4ac6ec5 100644
--- a/src/2023/18.c
+++ b/src/2023/18.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day18(void) {
- char *input = get_input("input/2023/18");
- printf("Solution for Day 18 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/18");
+ printf("Solution for Day 18 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/19.c b/src/2023/19.c
index 40963b4..2afd170 100644
--- a/src/2023/19.c
+++ b/src/2023/19.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day19(void) {
- char *input = get_input("input/2023/19");
- printf("Solution for Day 19 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/19");
+ printf("Solution for Day 19 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/20.c b/src/2023/20.c
index dd5c484..db0e785 100644
--- a/src/2023/20.c
+++ b/src/2023/20.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day20(void) {
- char *input = get_input("input/2023/20");
- printf("Solution for Day 20 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/20");
+ printf("Solution for Day 20 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/21.c b/src/2023/21.c
index 9e0f028..1310d5a 100644
--- a/src/2023/21.c
+++ b/src/2023/21.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day21(void) {
- char *input = get_input("input/2023/21");
- printf("Solution for Day 21 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/21");
+ printf("Solution for Day 21 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/22.c b/src/2023/22.c
index f2a53cf..6f05c97 100644
--- a/src/2023/22.c
+++ b/src/2023/22.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day22(void) {
- char *input = get_input("input/2023/22");
- printf("Solution for Day 22 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/22");
+ printf("Solution for Day 22 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/23.c b/src/2023/23.c
index 96ced38..95e9245 100644
--- a/src/2023/23.c
+++ b/src/2023/23.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day23(void) {
- char *input = get_input("input/2023/23");
- printf("Solution for Day 23 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/23");
+ printf("Solution for Day 23 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/24.c b/src/2023/24.c
index 7bb24bb..96c0ca2 100644
--- a/src/2023/24.c
+++ b/src/2023/24.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day24(void) {
- char *input = get_input("input/2023/24");
- printf("Solution for Day 24 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/24");
+ printf("Solution for Day 24 of 2023 is not completed yet\n");
+ free(input);
}
diff --git a/src/2023/25.c b/src/2023/25.c
index 0b613a8..dd63219 100644
--- a/src/2023/25.c
+++ b/src/2023/25.c
@@ -4,7 +4,7 @@
#include "lfinput.h"
void advent2023day25(void) {
- char *input = get_input("input/2023/25");
- printf("Solution for Day 25 of 2023 is not completed yet\n");
- free(input);
+ char *input = get_input("input/2023/25");
+ printf("Solution for Day 25 of 2023 is not completed yet\n");
+ free(input);
}