Please tell why my code is not giving any output


here is the link to my question please tell why my code is not giving the correct answer

@harryson
I have fixed your code. why were you clearing the v vector a number of times in the code. You were also starting the loop from i = 2 and not i = 1;

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.