This is a single file compile script which enables the STRICTEST compiler flags for competitive programming.
- Compiles C++ files with strictest flags ever and some assist debugging flags.
- Detects test case files (
*.in
) and automatically redirects output to*.ans
.
-
Download
make.sh
from release:You may clone this repo and try the demos first.
-
Installation
chmod +x ./make.sh sudo cp ./make.sh /usr/bin/fkccf
-
Run the script with your C++ file:
fkccf <your_file.cpp>
-
Key functionalities:
- Compilation: The script compiles the provided C++ file and generates an executable (
*.out
). - Automatical test: If
<filename>.in
exists, you will be prompted to use it asstdin
. Output is saved as<filename>.ans
.
- Compilation: The script compiles the provided C++ file and generates an executable (
- g++: Ensure
g++
is installed with support for C++14 or later. - Bash: The script is written for Bash environments (Linux, macOS, WSL, etc.).
Given a file example.cpp
:
-
Run the script:
fkccf example.cpp
-
If
example.in
exists, the script prompts:[Info]: Test case example.in detected. ------> Use this test case as stdin? [Y/n]
-
If confirmed, output is saved in
example.ans
and displayed in the terminal.
This repo is licensed under the GPLv3 License.