Can you let me know what's the error in this code

int main() {

int i=1;
int l=INT_MIN;
while(i<=3) {
    cout<<"give me a number";
    int a;
    cin>>a;
    if (a>l) {
        l=a;

    }
    i=i+1;
}
cout<<endl<<" largest number is :"<<l;
return 0;

}

Check out paired code and chat