코드 >> http://ideone.com/FYeRei
while (!one.IsEmpty() || !2.IsEmpty())
{
result_num = atoi(one.Top().c_str()) + atoi(2.Top().c_str());
one.pop();
2.pop();
result.push(to_string((result_num % 10 )+carry));
carry = (result_num / 10);
}
에서 result.push에 첫수는 들어가는데 두번째부터 안들어가고
string subscription range out 뜬다.
2.이 two.가 안되서 2로 대체함
http://ideone.com/FYeRei