Untitled
unknown
c_cpp
a year ago
334 B
8
Indexable
std::vector< int > baseOnVecAndVec2( const std::vector< int >& v1, const std::vector< int >& v2 )
{
std::vector< int > result;
int sum = 0;
for( const auto& e1 : v1 )
{
sum += e1;
}
for( const auto& e2 : v2 )
{
result.push_back( sum + e2 );
}
return result;
}Editor is loading...
Leave a Comment