This is a single file compile script which enables the STRICTEST compiler flags for OIers.
sh make.sh demo/foo.cpp
The executable program foo.out
is in the same directory as your source code file.
- User-friendly and colorful prompts.
- If test case
foo.in
was found, you can pass it asstdin
to your program. Your answer will be output, and be saved asfoo.ans
by default.
- You can name your test case
foo.in
and put it in the same directory asfoo.cpp
and enjoy easy input! - Don't want to type choices? Just keep it empty and press
Enter
to use default choice. sh make.sh foo.cpp
is too loooooong? Renamemake.sh
as your favourite namefkccf.sh
, and copy it to/usr/bin/
. Once you restart your terminal, you can enjoyfkccf foo.cpp
in any directory you want!