Test: int_overflow.cpp int_overflow.cpp:28:2: error: expected '}' at end of input 28 | } | ^ int_overflow.cpp:4:23: note: to match this '{' 4 | class PriceCalculator { | ^ int_overflow.cpp: In member function 'long long int PriceCalculator::calculateTotal(int, int)': int_overflow.cpp:10:41: error: a function-definition is not allowed here before '{' token 10 | void printOrder(int price, int qty) { | ^ int_overflow.cpp: In member function 'int PriceCalculator::main()': int_overflow.cpp:20:10: error: 'class PriceCalculator' has no member named 'printOrder' 20 | calc.printOrder(10, 5); | ^~~~~~~~~~ int_overflow.cpp:23:10: error: 'class PriceCalculator' has no member named 'printOrder' 23 | calc.printOrder(100000, 50000); // 5 billion - overflows int! | ^~~~~~~~~~ int_overflow.cpp: At global scope: int_overflow.cpp:28:2: error: expected unqualified-id at end of input 28 | } | ^