fork(2) download
#include <iostream>
#include <vector>
#include <numeric>
using namespace std;
int main()
{

    vector<double> coordinates;
    coordinates.push_back(0.5);
    coordinates.push_back(0.5);
    coordinates.push_back(0.5);

     cout<<inner_product(coordinates.begin(), coordinates.end(), coordinates.begin(), 0.0)<<endl;

    return 0;
}
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
0.75