diff --git a/main.cpp b/main.cpp index 5fa1a0d..a81babd 100644 --- a/main.cpp +++ b/main.cpp @@ -87,8 +87,10 @@ int main(int argc, char* argv[]) { for(auto guess : history) cout << format_guess_history(sequence, guess) << std::endl; - if(history.back() != sequence) + if(history.back() != sequence) { cout << format_lost_sequence(sequence) << std::endl; + return 1; + } return 0; }