#include #include int main() { double arr[] = { 1, 2, 3, 4, 5 }; double sum[5]; std::partial_sum(arr, arr+5, sum); std::cout << "Partialsummen von 1 2 3 4 5: \n"; for (double d : sum) { std::cout << d << ' '; } std::cout << '\n'; }