One possible thing that could be wrong is that there might be some trailing whitespace after the number of testcases - try replacing the
cin.ignore() with my suggestion here.
Since no one seems to have completed it, it could be that the testcases are simply wrong
Thanks @ssjgz, but it’s still not working. I’m pretty sure the code is correct, or is it
I can’t see anything wrong with your solution, personally - anyone else?
Looks like wrong or ill-formatted testcases to me
What’s weirder is that I’ve gone through most of the wrong submissions and the codes were far from solving the actual question: they range from checking if the given two strings (assuming it’s given somewhere) are anagrams… to things which have no connections to the question whatsoever. It’s been a little frustrating, to be honest.