Biggest number 628

would you please help i am unable to understand why is it wrong

Instead of using
for(i=n-1;i>=0;iā€“)
{
for(j=0;j<s[i].length();j++)
cout<<int(s[i][j]-48);
}
While you are sorting, use myCompare function, and then see if appending x to y is greater than appending y to x,.