Arrays max value in arrays

why my 1 test is failing in this code for finding largest value in the array although giving correct result

hello @sakshi0406
ur program will fail for case where all elements are negative.
make these changes ->
a) use long long for all variables
b) initialise ur ms with a[0]