What is MAX in this hash function?

is it INT_MAX (i dont think so) or is it the maximumvalue of the array??
if yes, then
for(int i=0;i<=MAX;i++) hash[i]=-1
this line seems to be inappropriate because of array indexing in for loop.

@sirraghavgupta, here MAX is the maximum possible value of A[i]
In the given problem A[i] ranges b/w 0 to 10^9 so MAX will be 10^9