Output not showing

@vmayaan, one thing here is it says sum of digits of factors and not sum of factors which u are doing u can work on that, and dont return from main function instead print there that’s the final function of the program

i cant understand, but i made some changes in main function and now


I can get output but 2 test cases are wrong

@vmayaan u r doing sum of factors
question says sum of digits of factors
if factors are 2,3,11,31 then u r doing 2+3+11+31
but u should do 2 + 3 + 1 + 1 + 3 + 1… just do this correction in your code u dont need vector anyway

@vmayaan, check here for implementation difficulties https://ide.codingblocks.com/s/656874 ive commented

i havn’t started vectors yet :sweat_smile:

@vmayaan apply above correction it will work

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.