When I submited my code it shows run-error
otherwise it shows compliation successful
Why it shows run error?
@be8036
hello bharat,
ur code is correct,u r getting run time error because n can be bigger than ur declared array size,to rectify it declare a bigger size array (check constraints )