#include<iostream>
using namespace std;
void printAllSubset(int are[], int aux[], int size, int sum, int i, int j, int r)
{
if(j == r && sum == 0)
{
for(int p =0; p<j; p++)
{
cout<<aux[p];
}
cout<<endl;
return;
}
for(int q=0; q<n; q++)
{
aux[j] = arr[q];
printAllSubset(arr, aux, n, sum+aux[j], q+1, j+1, r);
}
}
int main()
{
int arr[]={2,3,-5,1,-3, 0, 4,-1};
int aux[3] ={0};
int size = sizeof(arr)/sizeof(arr[0]);
Int sum=0;
printAllSubset(arr, aux, size, sum, 0, 0, 3);
return 0;
}