• + 0 comments

    Your variables x and ans needs to be long instead of int.