I have been trying to identify the problem with my code but with no success. I cannot use maps since I am trying to solve the problem in C. Please help me to understand the problem with my code and eventually help me out to rectify it. Here is my code:
https://ideone.com/0UCL1f