#include <iostream>
#include <vector>
#include <numeric>
int main() {
std::vector<int> v1 { 1, 4, 8, 9, 6 };
std::vector<int> v2 { 0, 7, 1, 3, 40 };
std::cout << "Dot product = " << inner_product(v1.begin(), v1.end(), v2.begin(), 0);
}
/*
run:
Dot product = 303
*/