#!/bin/bash
# Nearest with ties

trap "/usr/bin/killall -q -u $USER ./TSP 2>/dev/null" 0 1 2 3 9 15
trap "/bin/rm -f $STDERR" 0 1 2 3 9 15
if [ ! -x ./TSP ]; then
  echo './TSP is missing or not executable'
  echo './TSP is missing or not executable' 1>&2
  exit 1
fi


/c/cs474/bin/run -stdout=stdout.out -stderr=stderr.out ./TSP /c/cs223/hw22/Tests/t021.in -insert E00 EE1 EE2 EW1 EW2 NE1 NE2 SW1 SW2 < /dev/null
cat stdout.out stderr.out | cut -b 1-24
