C++ converts roman numeral to numbers 1-1000