This function mainly calls recursive function distSumRec ( ) to generate distinct sum subsets . And finally prints the generated subsets .
void printDistSum ( int arr [ ] , int n ) { unordered_set < int > s ; distSumRec ( arr , n , 0 , 0 , s ) ;