Test: int_overflow.cpp int_overflow.cpp: In member function 'int PriceCalculator::calculateTotal(int, int)': int_overflow.cpp:8:50: error: 'numeric_limits' is not a member of 'std' 8 | if (pricePerUnit > 0 && quantity > (std::numeric_limits::max() / pricePerUnit)) { | ^~~~~~~~~~~~~~ int_overflow.cpp:8:65: error: expected primary-expression before 'int' 8 | if (pricePerUnit > 0 && quantity > (std::numeric_limits::max() / pricePerUnit)) { | ^~~ int_overflow.cpp:8:65: error: expected ')' before 'int' int_overflow.cpp:8:44: note: to match this '(' 8 | if (pricePerUnit > 0 && quantity > (std::numeric_limits::max() / pricePerUnit)) { | ^ int_overflow.cpp:12:9: error: expected ')' before 'return' 12 | return pricePerUnit * quantity; // Safe multiplication | ^~~~~~ int_overflow.cpp:8:12: note: to match this '(' 8 | if (pricePerUnit > 0 && quantity > (std::numeric_limits::max() / pricePerUnit)) { | ^ int_overflow.cpp:13:5: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^