Form biggest number

My code is working fine in my IDE but coding blocks compiler is getting Wrong Answer all the time
My Code:-

#include<bits/stdc++.h>
using namespace std;
int main() {
int t,n,m;
cin>>t;
while(t–){
cin>>n;
string s[n];
for(int i=0;i<n;i++){
cin>>s[i];
}
sort(s,s+n);
for(int i=n-1;i>=0;i–){
cout<<s[i];
}
cout<<endl;
}
return 0;
}

please help me to solve this problem

hi @piyush42soni_45ae618b01096aab,
just sorting wont work
eg 10 100
your output --> 10010
actual output --> 10100

refer this --> https://ide.codingblocks.com/s/661893 ive commented