class Solution { public: int romanToInt(string s) { int ret=toNumber(s[0]); for(int i=1;i