From 4ee22b14e9cd8b3aff84c90cd00a7e0063bd871e Mon Sep 17 00:00:00 2001 From: Matuush Date: Fri, 8 Nov 2024 12:10:43 +0100 Subject: [PATCH] return 1 if lost --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }