Max value in array

I have putted constraint condition in my code still one test case is not passing kindly tell,…
https://ide.codingblocks.com/s/131246 Link to the code is above

@Madhavendra-Gupta-2240591552663161 hey madhavendra int max =a[0];

https://ide.codingblocks.com/s/131247 i have tried this code also same 1 test cae not passing

@Madhavendra-Gupta-2240591552663161 first sort the data of your array

i have sorted the data still 1 test case not passing and i have not used anywhere in my code int max =a[0] after using sorting the following code :==https://ide.codingblocks.com/s/126058