Error in printing subarrays

Why are my subarray combinations coming out wrong?
https://ide.codingblocks.com/s/60636

Hi Divyam, that is happening because while taking the input, you’ve initialised i=1 at line number 10, and then when you’re finding the subarrays, you’ve started the loop with i=0 at line number 16.