From 9915f0266673d6186c730e467778524f8ddb1afa Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 2 Dec 2017 17:08:03 +0100 Subject: add c++ runner --- run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 run.sh diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..5534fd3 --- /dev/null +++ b/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e + +DAY=${1?which day} + +: ${CXX:=g++} +: ${CXXFLAGS= -O2 -std=c++1z -g} +$CXX -Wall -Wextra $CXXFLAGS day$DAY.cc +./a.out