If current index is set to true in the boolean array then element at current index in the original array is part of the combination generated previously
if ( Flags [ i ] ) { cout << Indices [ i ] << " ▁ " ; ++ count ; } } cout << endl ; } } ;