fork(7) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<double> v{0,0,0.00737798,0.00737798,0.00737798,0.00737798,0.00737798,0.00737798,0.00737798,0,0};
  8.  
  9. cout << accumulate( v.begin(), v.end(), 0.0 );
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
0.0516459