#include // gives access to size_t #include #include using namespace std; /* Your code here */ double multiply(double const& lhs, double const& rhs) { return lhs * rhs; } int main() { double pi[]{0.0505, 0.0505, 0.0405}; double factorial[]{1.0, 2.0, 3.0, 4.0, 5.0}; string concat[]{" ", "world"}; cout << reduce({1,2,3,4,5}) << endl; cout << reduce(pi, 3.0) << endl; cout << reduce(factorial, 1.0, multiply) << endl; cout << reduce(concat, "hello"s) << endl; }