Function to print1 the arrays
void print1 ( vector < int > & a , vector < int > & b ) { int minProd = 0 ; for ( int i = 0 ; i < a . size ( ) ; ++ i ) { cout << a [ i ] << " ▁ " ; } cout << endl ; for ( int i = 0 ; i < b . size ( ) ; ++ i ) { cout << b [ i ] << " ▁ " ; minProd += a [ i ] * b [ i ] ; } cout << endl ; cout << minProd ; }