All Test Cases are Failiing

Refer for Code: -

hello @ambuj_0909
test ur code for this input
1
2
21 2

correct order is 221 but urs is giving 212.

definition of ur comparator should be
bool cmp(string a,string b){
return a+b > b+a
}

Thanks @aman212yadav
I redefined the comparator function accordingly but still all the test cases are failing. Please help me pass all the testcases.

bro u have done same mistake as yesterday.
add cout<<"\n" ;

Thanks @aman212yadav
Actually I take the sample test case into consideration, so I forget about the no. of testcases. Thanks a lot for the help bro!!