{"id":30354154,"url":"https://github.com/yuvrajkarna2717/cpp_setup","last_synced_at":"2025-08-19T02:07:21.499Z","repository":{"id":309347954,"uuid":"1029638126","full_name":"yuvrajkarna2717/cpp_setup","owner":"yuvrajkarna2717","description":"A setup designed to help write code faster during programming contests.","archived":false,"fork":false,"pushed_at":"2025-08-11T10:02:26.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-11T12:08:21.869Z","etag":null,"topics":["competitive-programming-contests","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuvrajkarna2717.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-07-31T10:46:02.000Z","updated_at":"2025-08-11T10:20:48.000Z","dependencies_parsed_at":"2025-08-11T12:08:23.399Z","dependency_job_id":"3dcb26c0-d690-40ab-b8a3-85c745dd635a","html_url":"https://github.com/yuvrajkarna2717/cpp_setup","commit_stats":null,"previous_names":["yuvrajkarna2717/cpp_setup"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/yuvrajkarna2717/cpp_setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajkarna2717%2Fcpp_setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajkarna2717%2Fcpp_setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajkarna2717%2Fcpp_setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajkarna2717%2Fcpp_setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuvrajkarna2717","download_url":"https://codeload.github.com/yuvrajkarna2717/cpp_setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuvrajkarna2717%2Fcpp_setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271088140,"owners_count":24697081,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["competitive-programming-contests","cpp"],"created_at":"2025-08-19T02:07:20.712Z","updated_at":"2025-08-19T02:07:21.489Z","avatar_url":"https://github.com/yuvrajkarna2717.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## 💻 Requirements\n\nBefore you begin, ensure you have the following tools installed:\n\n### 🔹 For Windows (using MSYS2 - Recommended)\n1. Download \u0026 install [**MSYS2**](https://www.msys2.org/)\n2. Launch the **MSYS2 MinGW 64-bit** shell\n3. Run the following commands:\n\n```bash\npacman -Syu                         # Update MSYS2 packages (restart if needed)\npacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake\n````\n\nThis installs:\n\n* `g++` compiler\n* `make`\n* `cmake`\n\n\u003e ⚠️ Make sure you're using the `MINGW64` shell (`mingw64.exe`), **not** the `MSYS` or `UCRT` ones.\n\n\n## 🛠 Setup \u0026 Build Instructions (Highly Detailed)\n\nThese steps will guide you from cloning the repo to compiling and running your project on any machine.\n\n### ✅ Step 1: Clone the Repository\n\n```bash\ngit clone https://github.com/yuvrajkarna2717/cpp_setup.git\ncd cpp_setup\n```\n\n### ✅ Step 2: Create the Build Directory\n\nCMake prefers out-of-source builds (keeps things clean):\n\n```bash\nmkdir build\ncd build\n```\n\n### ✅ Step 3: Run CMake to Generate Build Files\n\n```bash\ncmake ..\n```\n\n* This scans `CMakeLists.txt`, checks for your compiler, and prepares a build system.\n* It will fail if `cmake` or `g++` are not installed.\n\n### ✅ Step 4: Build the Project\n\n```bash\ncmake --build .\n```\n\n* Compiles `main.cpp` into an executable (e.g., `main.exe` on Windows)\n* Incremental: Only recompiles changed files.\n\n### ✅ Step 5: Run the Executable\n\n```bash\n./main.exe    # Windows\n./main        # macOS/Linux\n```\n\n---\n\n## 🚀 Quick Rebuild \u0026 Run Using `run.sh`\n\nInstead of running commands manually every time, you can use the helper script:\n\n### 📄 `run.sh` Contents\n\n```bash\n#!/bin/bash\ncd build || exit\ncmake --build .\necho -e \"\\n--- Running ---\\n\"\n./main.exe\n```\n\n### ▶️ How to Use It\n\n1. Make it executable (only once):\n\n```bash\nchmod +x run.sh\n```\n\n2. Run the full compile + execute process:\n\n```bash\n./run.sh\n```\n\n\u003e 📝 This script assumes you already have a `build/` directory and it’s configured via `cmake ..`. If not, run steps 2 \u0026 3 first.\n\n---\n\n## 🔁 What to Do After Code Changes?\n\n| Change Type              | What You Run                                  |\n| ------------------------ | --------------------------------------------- |\n| `.cpp` or `.h` modified  | `cmake --build . \u0026\u0026 ./main.exe` or `./run.sh` |\n| New file / renamed file  | `cmake .. \u0026\u0026 cmake --build . \u0026\u0026 ./main.exe`   |\n| `CMakeLists.txt` changed | `cmake ..` again before building              |\n\n---\n\n## 📂 Project Structure\n\n```\ncpp_setup/\n├── CMakeLists.txt      # CMake configuration\n├── main.cpp            # Entry point\n├── run.sh              # Automate build + run\n└── build/              # (Generated) build files \u0026 executable\n```\n\n---\n\n## 📜 License\n\nMIT License — free to use, modify, and distribute.\n\n---\n\n## 👨‍💻 Author\n\n[Yuvraj Karna](https://github.com/yuvrajkarna2717)\n\n---\n\n## 🌟 Support\n\nIf this project helps you, please consider ⭐ starring the repo to show your support!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvrajkarna2717%2Fcpp_setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuvrajkarna2717%2Fcpp_setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvrajkarna2717%2Fcpp_setup/lists"}