{"id":25422267,"url":"https://github.com/abd-01/aoc2024","last_synced_at":"2025-05-13T19:42:04.661Z","repository":{"id":272656415,"uuid":"915260200","full_name":"ABD-01/AoC2024","owner":"ABD-01","description":"Advent of Code 2024","archived":false,"fork":false,"pushed_at":"2025-02-14T14:13:21.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T15:26:30.899Z","etag":null,"topics":["advent-of-code","cpp","cpp11"],"latest_commit_sha":null,"homepage":"https://abd-01.github.io/AoC2024/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ABD-01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-11T11:43:00.000Z","updated_at":"2025-02-14T14:13:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae1fc57e-1bf9-4867-bb6f-87bbfae728b2","html_url":"https://github.com/ABD-01/AoC2024","commit_stats":null,"previous_names":["abd-01/aoc2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABD-01%2FAoC2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABD-01%2FAoC2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABD-01%2FAoC2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABD-01%2FAoC2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ABD-01","download_url":"https://codeload.github.com/ABD-01/AoC2024/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254015265,"owners_count":21999782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","cpp","cpp11"],"created_at":"2025-02-16T21:24:12.046Z","updated_at":"2025-05-13T19:42:04.615Z","avatar_url":"https://github.com/ABD-01.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code 2024 - C++ Solutions\n\n## 🚀 Overview  \n\nThis repository contains my solutions for Advent of Code 2024, implemented in C++. As someone with experience in C and Python, I am using AoC as a hands-on way to improve my C++ skills while solving fun and challenging problems.\n\n📖 **Blogs:** \n- [Days 1 to 8](https://abd-01.github.io/posts/2025-01-04-Advent-of-Code-2024-Day-1-to-8/)  \n\n\n## 🔧 Setup \u0026 Compilation  \n\n### Input Files  \n\nBefore running the solutions, you need to download the input files for each day. There are two ways to organize them:  \n\n#### 1. Per-Day Directory Structure  \n\nPlace each input file in its corresponding day's folder as shown below. The CMake script will automatically copy them to the build/ directory when you build the project.\n\n```\n|-- Day01_Historian_Hysteria\n|   `-- input.txt\n|-- Day02_Red-Nosed_Reports\n|   `-- input.txt\n|-- Day03_Mull_It_Over\n|   `-- input.txt\n|   .\n|   .\n|   .\n|-- DayN_XXX_XXX\n|   `-- input.txt\n```\n\nA warning will be shown if now corresponding input file is found.\n\n#### 2. Single `build/` Directory  \nAlternatively, you can place all input files directly inside the `build/` directory with the naming format:  \n\n```\nbuild/input1.txt\nbuild/input2.txt\nbuild/input3.txt\n.\n.\n.\nbuild/inputN.txt\n```\n\n### Build and Run Instructions  \n\n#### 1. Clone the Repository  \n\n```bash\ngit clone https://github.com/ABD-01/AoC2024.git\ncd AoC2024\n```\n\n#### 2. Create a `build/` Directory  \n\n```bash\nmkdir build\ncd build\n```\n\n#### 3. Configure the Project with CMake  \n\n```bash\ncmake ..\n```\n\n#### 4. Build the Executables  \n\n```bash\nmake\n```\n\n#### 5. Run the Solutions  \n\n- **Run all solutions**  \n\n  ```bash\n  make run\n  ```\n\n- **Run a specific day's solution** (e.g., Day 2)  \n\n  ```bash\n  make run2\n  ```\n\nEach day's executable will automatically read the input file (input{day}.txt) from the build/ directory, where CMake has placed it during the build process.\n\n## 📌 Contributions  \nIf you'd like to contribute, feel free to suggest improvements, alternative solutions or criticism via issues or pull requests.\n\n## 📜 License  \n\nThis project is open-source and available under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabd-01%2Faoc2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabd-01%2Faoc2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabd-01%2Faoc2024/lists"}