It looks like you are not clearing your converter
,
1234567891011121314151617
are all your integers you iterated
Assuming, convert is:
std::stringstream convert;
you can clear it before each use using:
convert.str(std::string());
convert << i;