#!/bin/bash set -e g++ $1 -o temp chmod +x temp # if it isn't already executable ./temp rm temp