Biggest Number Problem

In the Form Biggest Number Problem my code is giving wrong ans. I have tried different test cases which are coming right but ans is coming out to be wrong. Can you tell what is the problem.
Here is my code: https://ide.codingblocks.com/s/193449

@Codecracaker532
Consider a case:
1
2
98 9

Expected O/p:
998

Your O/p:
989

The custom compare function must be something like this:
bool mycompare(string a,string b)
{
string ab=a+b;
string ba=b+a;
return ab>ba;
}

1 Like