Passing the sample test case but showing the wrong answer in the final run. What’s wrong in the code
Vivek and factors - Number Theory
Hey @a19JE0093
You forgot to add endl after cout<<-1
Here updated ur code and mentioned the update in comment : https://ide.codingblocks.com/s/351977
Marking this as resolved 
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.
Thank you so much. My doubt is resolved!
1 Like