while(x) {int t = x % 10; x /= 10;}
int x = 0; for(i = 0; i < sen.size(); i ++) x = x * 10 + s[i] - '0';