Check the code for error

could you please check my code and tell me some test cases in which my code is lacking because of which I am not able to get the answer. The link for the code is given: https://ide.codingblocks.com/s/429745

take into consideration the long constraints which are failing your code
refer to this here

plzz tell me about my previous query

Even your code is giving wrong output for the test cases, could u please elaborate this

you just need to use long .shared the wrong code sorry
here:https://ide.codingblocks.com/s/433049