From ff4d393413d9e49f50e897b230843e0ba3cd35b4 Mon Sep 17 00:00:00 2001 From: dothething <165024975+dothething1DA@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:26:24 +1000 Subject: [PATCH] Add files via upload --- doc/scripts/test-compiles.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/scripts/test-compiles.sh diff --git a/doc/scripts/test-compiles.sh b/doc/scripts/test-compiles.sh new file mode 100644 index 0000000..c716d8f --- /dev/null +++ b/doc/scripts/test-compiles.sh @@ -0,0 +1,7 @@ +mkdir -p build +FILE="$1" +echo " +#include \"../content/contest/template.cpp\" +#include \"../$FILE\" +" >build/temp.cpp +g++ -Wall -Wextra -Wfatal-errors -Wconversion -std=c++17 build/temp.cpp && rm a.out build/temp.cpp