Test: int_overflow.cpp int_overflow.cpp:4:24: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:33: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:97: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:162: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:169: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:171: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:214: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:269: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:360: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:367: error: stray '\' in program 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:25: error: 'npublic' does not name a type 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^~~~~~~ int_overflow.cpp:4:170: error: 'n' does not name a type 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp:4:368: error: 'n' does not name a type 4 | class PriceCalculator {\npublic:\n long long calculateTotal(int pricePerUnit, int quantity) {\n return static_cast(pricePerUnit) * quantity;\n }\n\n void printOrder(int price, int qty) {\n long long total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n}; | ^ int_overflow.cpp: In function 'int main()': int_overflow.cpp:10:10: error: 'class PriceCalculator' has no member named 'printOrder' 10 | calc.printOrder(10, 5); | ^~~~~~~~~~ int_overflow.cpp:13:10: error: 'class PriceCalculator' has no member named 'printOrder' 13 | calc.printOrder(100000, 50000); // 5 billion - overflows int! | ^~~~~~~~~~