Defined in header <numeric> template< class InputIt, class OutputIt >
OutputIt partial_sum( InputIt first, InputIt last, OutputIt d_first ); (1) template< class InputIt, class OutputIt, class BinaryOperation >
OutputIt partial_sum( InputIt first, InputIt last, OutputIt d_first,
BinaryOperation op ); (2)
Computes the partial sums of the elements in the subranges of the range [first, last) and writes them to the range beginning at d_fir