language: C++ 4.7.2 (gcc-4.7.2)
date: 272 days 22 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
}