Read the error message. It clearly says "Input Mismatch", so there is something wrong with the way you retrieve input from the user.
Further down it tells us you use:

java.util.Scanner.nextInt()...