Got Wrong answer for maximum circular sum problem

For maximum circular subarray sum, according to me, my code is correct. I have run this code for many custom inputs and it is giving correct answers. But when I submit this code, it shows wrong answer. Can you please help me. My code is https://ide.codingblocks.com/s/139573

Use endl in line no 42, You havent used it for different test cases,
Here is the edited code,

1 Like