Run error in one test case in R9--found at last problem

In one test case my code is giving run error in R9–found at last problem.Please tell me where is the error.
link-https://ide.codingblocks.com/s/82849

@rishu7865 hey rishabh your array is taking garbage value how can determined size of n with taking input from user do int n;
cin>>n;
then declare array with arr[n+5];