Structurally identical-binary tree

why is one test case wromg?

I have edited your code, try to submit now,
There was a error in line no 46 of your code, you just have to use
bool right=check(root1->right,root2->right); instead of left, as you have used earlier…
This is the corrected code,