Compiler message is showing wrong

My code is working fine in vscode for various cases.But here it is showing wrong for all test cases.

#include
#include
#include
using namespace std;

void Form_BiggestNo(int *A,int n)
{
string s1,s2,s3,s4;
int i,j;
s3="";
s4="";
for(i=0;i<n;i++)
{
j=i+1;
while(j<n)
{
s1=to_string(A[i]);
s2=to_string(A[j]);
s3=s3.append(s1+s2);
s4=s4.append(s2+s1);
if(s4>s3)
swap(A[i],A[j]);
j++;
s3="";
s4="";

    }
}
for(i=0;i<n;i++)
   cout<<A[i];

}

int main()
{
int n;
cin>>n;
int *A=new int[n];
for(int i=0;i<n;i++)
cin>>A[i];

Form_BiggestNo(A,n);   

}

your code is not taking input according to question
you have to solve t different testcases that you are not considering

do it like this

int t;cin>>t;
while(t--){
 // solve the question here
 take n and then n inputs(elements of array)
}

it wasn’t mentioned in the question for taking test cases as input

int n; cin>>n; int *A=new int[n]; for(int i=0;i<n;i++) cin>>A[i]; Form_BiggestNo(A,n);

its still showing wrong
#include
#include
#include
using namespace std;

void Form_BiggestNo(int *A,int n)
{
string s1,s2,s3,s4;
int i,j;
s3="";
s4="";
for(i=0;i<n;i++)
{
j=i+1;
while(j<n)
{
s1=to_string(A[i]);
s2=to_string(A[j]);
s3=s3.append(s1+s2);
s4=s4.append(s2+s1);
if(s4>s3)
swap(A[i],A[j]);
j++;
s3="";
s4="";

    }
}
for(i=0;i<n;i++)
   cout<<A[i];

}

int main()
{
int t,n;
cin>>t;
while(t>0)
{
cin>>n;
int *A=new int[n];
for(int i=0;i<n;i++)
cin>>A[i];

    Form_BiggestNo(A,n);
	t--;

}

}

i have share you the meet link in chat
you can join that tomorrow after 10am just drop a msg before joining

Reference Code