Sum It Up HACKER BLOCKS

https://hack.codingblocks.com/contests/c/452/912
https://ide.codingblocks.com/#/s/30676

one test case wrong
please fix it

https://ide.codingblocks.com/#/s/30702

i have made the changes. The question says print the UNIQUE combinations in lexographical order. Unique part was going wrong in your code
FOR EXAMPLE:
INPUT:
4 3
1 1 2 2
OUTPUT:
1 2
1 2
1 2
1 2
EXPECTED OUTPUT:
1 2

So to solve this, i added all the answers to a set to ensure distinct answers. This solved the problem.

3
2 2 4 6
8
this test case is not working on your corrected code