Run error despite using kadane algo


I have used Kadane algo for this problem and output came perfectly on IDE but shows run error when i submit

@ankush.bhardwaj0 increase the size of array it’s causing run error.