#! /bin/sh
for i in 1 2 3 4 5 6 13 14 15 16 17 18
do
echo $i
if test -f prob$i.ok
then
continue
fi
if test -f prob$i.e
then
:
else
bduflag=""
case $i in
	*17*) echo cc  ${bduflag} prob17.c -o prob17.e
	 cc  ${bduflag} prob17.c -o prob17.e -lm;;
	*) echo cc prob$i.c -o prob$i.e
	 cc prob$i.c -o prob$i.e ;;
esac
fi
echo $i
prob$i.e<prob$i.in>prob$i.tst
if compare prob$i.ans prob$i.tst
then
echo ok
cp /dev/null prob$i.ok
else
echo bad
rm prob$i.e
fi



diff prob$i.ans prob$i.tst
done

