This is a single file compile script which enables the STRICTEST compiler flags for OIers.
sh make.sh demo/foo.cpp
The executable programme foo.out
is in the same directory as your source code file.
-
User-friendly prompts.
-
If test case
foo.in
was found, you can pass it asstdin
to your programme.
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 pressEnter
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!