i want to know the mistake in this code y tst case is showing wrong
Form biggest number alt sol
String append actually appends the second string onto first one. So when you did a.append(b) in comparison function then you actually modified the content of string a which you are again using in next line. I would suggest you should use string concatenation (using + operator) so that your a and b do not get modified.
int compare( string a, string b)
{
string s = a+b;
string t = b+a;
return s > t;
}
Also, you forgot to print a newline after each test case 