Test Case for SUBINC

Could someone help me in finding out the error in my code for SUBINC. It has failed 1 out of 15 test cases.

Link to the submission : CodeChef: Practical coding for everyone


    cin >> n;
    if (n == 1)
        cout << 1 << '\n';

Can you see a problem here?

Oh sorry. That was a careless mistake. Thanks for the correction. :sweat_smile: :sweat_smile: :grinning: