Compare whether the sum is equal to n or not , if it is equal to n print the numbers
if ( sum == n ) { for ( auto i = s . begin ( ) ; i != s . end ( ) ; i ++ ) { cout << * i << " ▁ " ; } cout << endl ; return ; } }