#include <iostream> #include <vector> #include <numeric> using namespace std; int main() { vector<int> v1(5), v2(5); int i, total; for(i=0; i<5; i++) v1[i] = i; for(i=0; i<5; i++) v2[i] = i+2; total = inner_product(v1.begin(), v1.end(),v2.begin(), 0); cout << total; return 0; }