Program giving wrong output

If I run the same program in my VS code, it is running. Here, it is not able to pass any test case. Can you please help me with that.
Program to print the largest no amount 3 inputs.
#include
using namespace std;
int main()
{
int i, n, lar;
cout<<"Enter the numbers : ";
for(i=1;i<4;i++)
{
cin>>n;
if(i==1)
{
lar=n;
}
if(n>lar)
{
lar=n;
}
}
cout<<lar;

return 0;

}

@utkarsh9sep_9e13849ed528b93b,

// cout<<"Enter the numbers : "; no need of this line else code is correct

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.