Aray_max value in Array

my #3 test case is not passed
https://ide.codingblocks.com/s/52178

https://ide.codingblocks.com/s/52191 Also kadane is used for maximum subarray .

but my que is that if i use INT_MIN website compiler show error

That’s because INT_MIN isnt defined in header file iostream , to use INT_MIN use header file
#include<limits.h>