Don’t know why one test case is not working .
code link- https://ide.codingblocks.com/s/126348
Structurally Identical one wrong case showing
@Aakash-Gupta-2308897339337431 in this question we just have to make sure that the structure is identical. It is not necessary that data of 2 trees should be similar.
So in line number 49 just remove the following condition and your code will work fine.
Remove this : (root1->data==root2->data).
Hope this helps.