Test: int_overflow.cpp int_overflow.cpp:1:20: warning: extra tokens at end of #include directive 1 | #include \n#include \n\n// Bulk price calculator\nclass PriceCalculator {\npublic:\n // Prevent overflow using 64-bit intermediate and clamp to int range\n int calculateTotal(int pricePerUnit, int quantity) {\n long long total = static_cast(pricePerUnit) * static_cast(quantity);\n if (total > std::numeric_limits::max()) return std::numeric_limits::max();\n if (total < std::numeric_limits::min()) return std::numeric_limits::min();\n return static_cast(total);\n }\n\n void printOrder(int price, int qty) {\n int total = calculateTotal(price, qty);\n std::cout << "Price: $" << price << " x " << qty << " = $" << total << std::endl;\n }\n};\n\nint main() {\n PriceCalculator calc;\n\n // Small order - works fine\n calc.printOrder(10, 5);\n\n // Large order - will overflow (now clamped)\n calc.printOrder(100000, 50000); // 5 billion - clamped to INT_MAX\n\n std::cout << "Done" << std::endl;\n\n return 0;\n} | ^ int_overflow.cpp: In function 'void printOrder(int, int)': int_overflow.cpp:3:21: error: 'calculateTotal' was not declared in this scope 3 | void printOrder(int price, int qty) { | ^~~~~~~~~~~~~~ int_overflow.cpp: At global scope: int_overflow.cpp:6:1: error: expected declaration before '}' token 6 | } | ^ int_overflow.cpp: In function 'int main()': int_overflow.cpp:9:5: error: 'PriceCalculator' was not declared in this scope 9 | int main() { | ^~~~~~~~ int_overflow.cpp:12:5: error: 'calc' was not declared in this scope; did you mean 'calloc'? 12 | // Small order - works fine | ^~~~ | calloc