Commit 9c5efbfb uses std::inner_product defined in <numeric>, which is not yet included.
std::inner_product
<numeric>