Working on my compiler

Here shows eof,how to resolve

Hi Abhishek,
Request you to share the code through the Coding Blocks IDE (cb.lk/ide). It would be a lot easier for me to help you if you could share your code through the mentioned platform.
Just paste the code at cb.lk/ide, save it, and share the generated URL.

Request you to try submitting it again at this link. I tried and it passed all the test cases.
https://hack.codingblocks.com/app/contests/1129/206/problem

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.