From 62ba8e0ff002dc94ae3f3f902a5ac577426c3cfe Mon Sep 17 00:00:00 2001 From: John Burton Date: Sun, 3 May 2026 21:39:24 +0100 Subject: [PATCH] Bug fixing --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6c11677..566c39e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,12 +1,12 @@ #include -int main() { - - auto max_value = 100; +int main() +{ + auto the_max_value = 100; int total = 0; - for (int i = 0; i < max_value; ++i) { - total += i; + for (int v = 0; v < the_max_value; ++v) { + total += v; } std::cout << "Total: " << total << std::endl;