• + 1 comment

    WTF. It took me an entire noon to figure it out and ultimately I found that in C++, the data type of the variable used to receive the answer is INT. However, some answers of examples exceed 2^31 - 1. It should be LONG. Damn.