From 67917edb90b99dd0b7b04529923442cef6b257dd Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Fri, 17 Sep 2021 13:24:38 -0700 Subject: [PATCH] Closes #9 --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2475a70..ae20233 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,10 +55,11 @@ int main() { std::cout << "Finished" << "\n"; - if (outcome == 1) + if (outcome == 1) { std::cout << "Sim Result = Success!"; - else if (outcome == 0) + return 0; + } else if (outcome == 0) { std::cout << "Sim Result = Failed!"; - - return 0; + return 1; + } } \ No newline at end of file