Structurally Identical(Binary Tree)

I am getting run error in my code. what is wrong? https://ide.codingblocks.com/s/102162

1 Like

Hello @anushkasharma1108,

Runtime error can occur due to following reasons:

  1. Invalid memory access during run-time.
  2. Accessing linked list nodes that do not exist.
  3. Dividing by zero.
  4. Large allocation of memory together/Large Static Memory Allocation.
  5. Making a silly mistake.

I have modified your code, now it’s running correctly.
Click here to check.

Hope, this would help.
Give a like, if you are satisfied.

1 Like

See this code https://ide.codingblocks.com/s/263113

Hey @D19CPPP0005,

What should i see it for?
It is passing all the test cases.