Whenever i print output in function it works but if i try to push it in the vector and print in main, it changes each value to the value of last character corresponding to input.
for example:
if input is 34
if i print output in the funtion , it prints alright
something like : dg , dh , di , eg,eh,ei , fg,fh,fi
but if i push it in vector and print it in main, it changes all the values to ‘fi’
I don;t know why it is happening.