Maximum Subarray Sum

My code is running fine but when i am submitting the code through https://online.codingblocks.com/ am getting error. Code ref : https://ide.codingblocks.com/s/171158

Are you sure that you are selecting the correct language in the IDE? Please select Java 8 and try compiling again. Let me know if you still face some issue.

Hey @Ans i hope i have solved the doubt, if so kindly mark the doubt as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.