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