Test: int_overflow.cpp int_overflow.cpp: In member function 'int PriceCalculator::calculateTotal(int, int)': int_overflow.cpp:8:66: error: 'INT_MAX' was not declared in this scope 8 | return static_cast(pricePerUnit) * quantity > INT_MAX ? INT_MAX : static_cast(static_cast(pricePerUnit) * quantity); // Fixed: overflow check | ^~~~~~~ int_overflow.cpp:2:1: note: 'INT_MAX' is defined in header ''; did you forget to '#include '? 1 | #include +++ |+#include 2 |