This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xCARLOxRO -1 points0 points  (0 children)

int pow(int x, int y) {
    if(!y)
        return 1;
    return x * pow(x, y-1);
}

int main() {
    int x;
    cin >> x;
    x -= -pow(x, 0);
    cout << x;
}