How to remove duplicates in SUM IT UP

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

u have to store that then duplicates can be removed
or u can do it through bottom up approach in this duplicates will not form,

Use map of <int* , int> which stores the array and its size of the different subsets .
for hint you can take a look on this code, its just Pseudo code
https://ide.codingblocks.com/#/s/19321