Inserting elements in array

Given below is the code to insert n elements in an array:
int main ()
{
int n;
Cin>>n;
int arr[];
for(int i =0;i<n;i++)
{
cin>>arr[i];
}
}

why didn’t we write cin.get() after cin>>n and cin>>arr[i] like we do when we have to input sentences in an array.

cin.get() is used to handle spaces and continue the input after a space
here each space would mean that now a new element needs to be input so we do not have to handle spaces

hey @Tiwary725 if your doubt is solved, please mark it as resolved