Working code gets Runtime Error

I am working on infix to postfix conversion. My code is working on my IDE (Code::Blocks), Ideone and even CodeChef IDE for all the sample cases and my own test cases, but the code gives SIGSEGV runtime error when I submit the solution.
Link to the Problem: https://www.codechef.com/LRNDSA02/problems/INPSTFIX
My solution: https://www.codechef.com/viewsolution/37392428

Please help me out!!

Exact same problem as this guy:

2 Likes

Thank you, for the prompt response, I figured out where the stack was accessing out of bounds and made changes accordingly. But now my solution isn’t being accepted despite it running all the my sample cases correctly.
This is my updated solution: https://www.codechef.com/viewsolution/37396874

My Test Cases
8
15
((A+B)D)^(E-F)
19
A+(B
C-(D/E^F)G)H
11
A+B
(C^D-E)
5
A
B+C
7
A*(B+C)
5
A/BC
5
A/B^C
9
A-(B/C
D)

This post was flagged by the community and is temporarily hidden.