INCORRECT OUTPUT
@mverma_be19 in the question’s input format, all numbers are given on the same line, not in separate lines. So use cin for taking input
@mverma_be19 your compare function is also wrong. It will not work for cases like
600 60
Correct compare function:
bool compare(string a,string b){
return a+b > b+a;
}
Now its giving correct output but no test case satisfied after submitting
yes I have already corrected it by adding endl.
still not satisfying test case
okay now it worked. Thank you
1 Like