What is the output of the below program?
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> v = {5, 10, 15};
int res = accumulate(v.begin(), v.end(), 0, [](int a, int b) { return a * b; });
cout << res;
return 0;
}
750
0
30
Compiler error
This question is part of this quiz :
C++ STL Non-Mutating Algorithms