Test: int_overflow.cpp int_overflow.cpp:29:2: error: expected '}' at end of input 29 | } | ^ int_overflow.cpp:4:23: note: to match this '{' 4 | class PriceCalculator { | ^ int_overflow.cpp: In member function 'int PriceCalculator::calculateTotal(int, int)': int_overflow.cpp:8:66: error: a function-definition is not allowed here before '{' token 8 | long long calculateTotal(int pricePerUnit, int quantity) { return static_cast(pricePerUnit) * quantity; // Prevent overflow | ^ int_overflow.cpp:11:41: error: a function-definition is not allowed here before '{' token 11 | void printOrder(int price, int qty) { | ^ int_overflow.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type] 15 | }; | ^ int_overflow.cpp: In member function 'int PriceCalculator::main()': int_overflow.cpp:21:10: error: 'class PriceCalculator' has no member named 'printOrder' 21 | calc.printOrder(10, 5); | ^~~~~~~~~~ int_overflow.cpp:24:10: error: 'class PriceCalculator' has no member named 'printOrder' 24 | calc.printOrder(100000, 50000); // 5 billion - overflows int! | ^~~~~~~~~~ int_overflow.cpp: At global scope: int_overflow.cpp:29:2: error: expected unqualified-id at end of input 29 | } | ^