Untitled

Anonymous
c_cpp
07/12/2024 10:54 AM
284 B
17
Indexable
std::vector< int > getSquareVector( const std::vector< int >& vec )
{
    std::vector< int > result;

    for( auto const& e : vec )
    {
        result.push_back( e * e );
    }

    return result;
}
Editor is loading...
Leave a Comment