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