Why is it showing a run error?


Please help

hello @Parikalp10
check maximum value of n (from constraint section) ,and declare ur array size bigger than that.

or

declare array like->
int n;
cin>>n;
int arr[n];

okay thank you so much