MAX in a array challenge problem

why my code is showing segmentation fault
#include
#include
using namespace std;

int main() {
int i, a[INT_MAX],lar;
for(i<0;i<INT_MAX;i++){
cin>>a[i];
}
lar=INT_MIN;
for(i<0;i<INT_MAX;i++){
lar= max(lar,a[i]);
}
cout<<lar;
return 0;
}

@adarshsingh2k multiple errors corrected code (wrong syntax and no input)


dont forget to hit like and mark resolved if cleared :smiley: