From 9269408dd4fd5cb1182b1e7dbbbd5e44adf9ecc7 Mon Sep 17 00:00:00 2001 From: "jweerkens@csuchico.edu" Date: Wed, 4 Feb 2026 17:53:03 -0800 Subject: [PATCH] Gave explicit size to ints --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a495fc94..742263b3 100644 --- a/main.cpp +++ b/main.cpp @@ -1,12 +1,14 @@ #include #include +#include int main() { std::cout << "THE FIRST EXAMPLE MATH DISPLAY!\n"; + std::cout << "(Limited to whole numbers between -2,147,483,648 and 2,147,483,647)\n"; std::cout << "Hi, please enter two whole numbers: "; - int x,y; + int32_t x,y; std::cin >> x >> y; std::cout << "Addition: " << x + y << std::endl;