Today, I was doing 897B - Chtholly's request. I submitted these two: 86652318 and got RTE, but when I submitted 86652949 it got AC. The only difference between the two submissions was that one of them had stoi
and the other had my own stoi
. Please check these out.
Your "stoi" actually is stoll. Why have you written your own one if it already exists in the std namespace?