The given input gives the correct ans but when I submit the code, it says ‘wrong answer’. Pls check my code.
@urvigoel26 hey urvi please share your code after saving it on cb.lk/ide.
https://ide.codingblocks.com/s/91942
@urvigoel26 hey urvi declare your currentsum variable and max sum variable inside the loop