Giving me a segfault and I can’t seem to figure out why.
modify code where if(l>r&&sum!=x)return 0;
and return the or of the last two called recusive function(if any subset returns you 1 result).
you can find modified solution here https://ideone.com/8B7EtC
@ram_24 I did that actually without coming across your answer first, but it worked, no clue what caused it but thanks a lot!