print error message if comp number too small or large