Everybody has met this one. You're most of the way through filling something in online, you mistype a single character, and the whole thing throws you out and makes you start from the beginning.
It's infuriating. It's also almost always a choice somebody made — or more often, a choice nobody made, because what to do about a typo never came up.
The programs you've written so far behave exactly this way. One unexpected answer and they're finished, with no way at all to offer the person a second go.