#include<numeric>
int sum = accumulate(vec.begin() , vec.end() , 0); 注意第三个值是累加地初始值
int sum = accumulate(vec.begin() , vec.end() , 0);
string sum = accumulate(v.begin() , v.end() , string(" "));