Submition of code

when i am submitting the code the compiler give the run error the code is working fine on coding blocks ide as well as dev c++ also there are 2 test cases out of which one of the test case is working fine but the other is giving the run error please suggest the changes, the same thing is happening with the previous questions also.

@pranav_sharma hey pranav can you please share the implementation of your code through ide.codingblocks.com