Disable the solve button when it doesn't make sense