String sort question giving wa


i have made my comparator where i have checked if its a substring, then sorted on lenght otherwise sort on lexigraphy.
but output is not showing.

Hey
try to run your code in codechef.com/ide
works fine!

yes but i have to submit it for evaluation in my algo++ course where it is not working. can you help on this?

Drop a mail to [email protected] and write them your problem.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.