{"id":21300788,"url":"https://github.com/estrella-explore/gcc_strict-flags","last_synced_at":"2025-10-28T14:45:23.881Z","repository":{"id":256370472,"uuid":"849656739","full_name":"Estrella-Explore/gcc_strict-flags","owner":"Estrella-Explore","description":"To enable the STRICTEST compiler flags for competive programming (single file compile script).","archived":false,"fork":false,"pushed_at":"2025-02-07T11:14:43.000Z","size":61,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T08:24:26.378Z","etag":null,"topics":["codacy-badge","codeforces","cpp14","gcc","gcc-compiler","icpc","icpc-training","luogu","noip","oi","olympiad-in-informatics","olympic","shell","shell-script","shell-scripting","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Estrella-Explore.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}},"created_at":"2024-08-30T02:04:16.000Z","updated_at":"2025-01-25T06:22:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a830cadc-dd57-4559-87ec-39ba7803cd06","html_url":"https://github.com/Estrella-Explore/gcc_strict-flags","commit_stats":null,"previous_names":["estrella-explore/gcc_strict-flags"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Estrella-Explore/gcc_strict-flags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Estrella-Explore%2Fgcc_strict-flags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Estrella-Explore%2Fgcc_strict-flags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Estrella-Explore%2Fgcc_strict-flags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Estrella-Explore%2Fgcc_strict-flags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Estrella-Explore","download_url":"https://codeload.github.com/Estrella-Explore/gcc_strict-flags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Estrella-Explore%2Fgcc_strict-flags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892056,"owners_count":23679214,"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":["codacy-badge","codeforces","cpp14","gcc","gcc-compiler","icpc","icpc-training","luogu","noip","oi","olympiad-in-informatics","olympic","shell","shell-script","shell-scripting","shell-scripts"],"created_at":"2024-11-21T15:31:11.315Z","updated_at":"2025-10-28T14:45:18.844Z","avatar_url":"https://github.com/Estrella-Explore.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **gcc_strict-flags**\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e96d8a94cfce436aa957c8fe416c9e77)](https://app.codacy.com/gh/Estrella-Explore/gcc_strict-flags/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\n\u003e [!TIP]\n\u003e This is a single file compile script which enables the **STRICTEST compiler flags** for competitive programming. 🚀 \n\n\u003cdiv align=\"center\"\u003e\n  English \u0026nbsp|\u0026nbsp \n  \u003ca href=\"README_zh-CN.md\"\n     style=\"\n       display: inline-block;\n       padding: 5px 12px;\n       font-size: 14px;\n       color: white;\n       background-color: #d3445e;\n       border-radius: 4px;\n       text-decoration: none;\n       \"\u003e\n   简体中文\u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## **Features**\n\n- Compiles C++ files with strictest flags ever and some assist debugging flags.\n- Detects test case files (`*.in`) and automatically redirects output to `*.ans`.\n\n---\n\n## **Usage**\n\n1. **Download `make.sh` from [release](https://github.com/Estrella-Explore/gcc_strict-flags/releases):**\n\n    \u003e You may clone this repo and try the demos first.\n    \n    You could also download the latest version via `curl`:\n    ```bash\n    curl -O https://raw.githubusercontent.com/Estrella-Explore/gcc_strict-flags/main/make.sh\n    ```\n\n2. **Installation**\n\n    ```bash\n    chmod +x ./make.sh\n    sudo cp ./make.sh /usr/bin/fkccf\n    ```\n\n3. **Run the script with your C++ file:**\n\n   ```bash\n   fkccf \u003cyour_file.cpp\u003e\n   ```\n\n4. **Key functionalities:**\n   - **Compilation:** The script compiles the provided C++ file and generates an executable (`*.out`).\n   - **Automatical test:** If `\u003cfilename\u003e.in` exists, you will be prompted to use it as `stdin`. Output is saved as `\u003cfilename\u003e.ans`.\n\n---\n\n## **Requirements**\n\n- **g++:** Ensure `g++` is installed with support for C++14 or later.\n- **Bash:** The script is written for Bash environments (Linux, macOS, WSL, Git Bash, etc.).\n\n---\n\n## **Example Workflow**\n\nGiven a file `example.cpp`:\n\n1. Run the script:\n   ```bash\n   fkccf example.cpp\n   ```\n\n2. If `example.in` exists, the script prompts:\n   ```text\n   [Info]: Test case example.in detected.\n   ------\u003e Use this test case as stdin? [Y/n]\n   ```\n\n3. If confirmed, output is saved in `example.ans` and displayed in the terminal.\n\n---\n\n## **License**\n\nThis repo is licensed under the [GPLv3 License](./LICENCE).  \n\n\n## Star History\n\n\u003ca href=\"https://star-history.com/#estrella-explore/gcc_strict-flags\u0026Date\"\u003e\n \u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=estrella-explore/gcc_strict-flags\u0026type=Date\u0026theme=dark\" /\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=estrella-explore/gcc_strict-flags\u0026type=Date\" /\u003e\n   \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=estrella-explore/gcc_strict-flags\u0026type=Date\" /\u003e\n \u003c/picture\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festrella-explore%2Fgcc_strict-flags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festrella-explore%2Fgcc_strict-flags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festrella-explore%2Fgcc_strict-flags/lists"}