From 3f979f143f70bf96572a41485951ef68b0e2c372 Mon Sep 17 00:00:00 2001 From: moonleay Date: Wed, 20 Nov 2024 16:47:59 +0100 Subject: [PATCH] fix: fixed issue with number with three digits featuring 11 or 12 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a08f942..7b696a2 100644 --- a/main.cpp +++ b/main.cpp @@ -52,7 +52,7 @@ int main() } result.push_back(suffix); - if (input_length > 1 && (middle_digit < 11 || middle_digit > 12)) + if (input_length > 1 && (last_two_digits < 11 || last_two_digits > 12)) result.push_back(middle_digit_strings[middle_digit]); else result.push_back("");