I am sumbitting these program on other compliers and online ides it is giving the correct outhput without any error but it is giving error only here.Program is to form the biggest number

#include
#include
#include
using namespace std;

bool mycompare(string x , string y)
{
string xy = x.append(y);
string yx = y.append(x);
return (xy.compare(yx));
}

int main()
{
int t;
cin>>t;
vector<vector>v(t);
for(int i=0;i<t;i++)
{
int n;
cin>>n;
v[i] = vector(n);
for(int j = 0;j<n;j++)
{
cin>>v[i][j];
}
sort(v[i].begin(), v[i].end(), mycompare);
}

for(int i =0;i<t;i++)
{
    for(int j =0;j<v[i].size();j++)
        cout<<v[i][j];
    
    cout<<endl;
}
  

return 0;

}

Hey @Nitishkumar9711
Please send your code on CB IDE. Some code gets lost in website encoding scheme if you paste it directly.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.