From ca88560dc83775c76d4a421fe3f558643a0c35c8 Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Fri, 13 Dec 2024 15:04:22 +0100 Subject: [PATCH] add readme + added day5 --- day5/day.cpp | 18 ++++++++++++++++++ readme.md | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 day5/day.cpp create mode 100644 readme.md diff --git a/day5/day.cpp b/day5/day.cpp new file mode 100644 index 0000000..3ff82c1 --- /dev/null +++ b/day5/day.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +int main() { + std::ifstream inputfile("input"); + std::string input; + + int res = 0; + if (!inputfile.is_open()) { + std::cerr << "Could not open the file" << std::endl; + return ENOENT; + } + std::string line; + std::vector> wordsearch; + + while (std::getline(inputfile, line)) { + } +} \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e93a83b --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ +# My advent of code 2024 solutions + +> [!NOTE]\ +> If something does not work try removing empty line at the end of the input \ No newline at end of file