A Very Big Sum

  • + 0 comments

    You need to do the above like return std::accumulate(ar.begin(), ar.end(), 0.0l); The last argument is the init value and its data type matters so need to send 0.0l.