fork(1) download
  1. #include <iostream>
  2. #include <numeric>
  3.  
  4. int main () {
  5.  
  6. int arr[] = {10,20,30};
  7. std::cout << std::accumulate(
  8. std::begin(arr), std::end(arr), 1.0, [](auto x,auto y){ return x*y;});
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
6000