#!/bin/sh
set -eu

if [ ! "${CPP_HOME:-}" ]
then
    echo You must set CPP_HOME to the directory where the materials are >&2
    exit 1
fi
if [ ! -f ${CPP_HOME:-}/Includes/std_lib_facilities.h ]
then
    echo ${CPP_HOME:-}/Includes/std_lib_facilities.h does not exist >&2
    exit 1
fi

g++ -Wall -Wextra -g -O3 -I${CPP_HOME:-}/Includes $@
./a.out
