fork download
  1. #include <iostream>
  2. #include <numeric>
  3. int main()
  4. {
  5. int valor[10] = {1,2,3,4,5,6,7,8,9,10};
  6. std::cout << std::accumulate(valor, valor+10, 0) << '\n';
  7. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
55