2 ms·
And for making this possible vector<int> v = {1,2,3,4,5}; cout << accumulate(begin(v), end(v), 1, multiplies<>());
by nly 11y ago
And for making this possible
vector<int> v = {1,2,3,4,5};
cout << accumulate(begin(v), end(v), 1, multiplies<>());