Test: int_overflow.cpp int_overflow.cpp: In member function 'int PriceCalculator::calculateTotal(int, int)': int_overflow.cpp:9:45: error: 'numeric_limits' is not a member of 'std' 9 | if (total > static_cast(std::numeric_limits::max())) { | ^~~~~~~~~~~~~~ int_overflow.cpp:9:60: error: expected primary-expression before 'int' 9 | if (total > static_cast(std::numeric_limits::max())) { | ^~~ int_overflow.cpp:9:60: error: expected ')' before 'int' int_overflow.cpp:9:60: error: expected ')' before 'int' int_overflow.cpp:9:4: note: to match this '(' 9 | if (total > static_cast(std::numeric_limits::max())) { | ^ int_overflow.cpp:9:72: error: expected primary-expression before ')' token 9 | if (total > static_cast(std::numeric_limits::max())) { | ^ int_overflow.cpp:8:23: warning: control reaches end of non-void function [-Wreturn-type] 8 | long long int total = static_cast(pricePerUnit) * static_cast(quantity); | ^~~~~