```
#include <iostream>
using namespace std;
void fun(int arr,vector<int> sum,int i,int len){
if(i==len){
cout<<"0 ";
sort(sum.begin(), sum.end());
for (auto a = sum.begin(); a != sum.end(); a++)
cout << *i << " ";
return;
}
else{
int s=0;
for(int j=i;j,len;j++)
{
s+=arr[i];
sum.push_back(s)
}
fun(arr,sum,i+1,len)
}
}
int main() {
//code
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
vector<int> sum;
int len=arr.size();
fun(arr,sum,0,len);
}
return 0;
}
```

My code isn’t compiling. please help me find the error.