Tree form inorder and postorder array

/bin/run.sh: line 4: 19 Segmentation fault (core dumped) ./exe < run.stdin > run.stdout 2> run.stderr

I am getting this error for some reason my code is right as shown in video

Hey @aryamaan1011
Can you Post your code in a coding blocks ide link?

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.