Delhi's odd even problem on hackerblocks

source code : https://hack.codingblocks.com/submission/1488104

I am not able to generate a correct answer for 2nd input… wht shall be change in the condition?

Hey Yukti, this link is not accessible, copy your code on ide, save it and share that link here. So that we can help you in debugging your code.

https://ide.codingblocks.com/s/47757

https://ide.codingblocks.com/s/47757

Hey Yukti, there is just a small mistake in your code i.e. for each test case you have to assign sume=0, sumo=0; so that sum of one test case wouldn’t affect the other test cases.