Limits: 1s, 512 MB

Kinderbijslag (children’s allowance) is a social security payment which is distributed to the parents or guardians of children, teenagers and in some cases, young adults. This benefit is meant to allay the expenses of care for a child, such as clothing, sports activities and so forth.

This is a companion discussion topic for the original entry at

whats wrong here?

using namespace std;
int main()
    int i, t, m, p, n;
    double temp;
    cin >> t;

        cin >> m >> p >> n;
            cout << "YES" << endl;
        else if(m<temp)
            cout << "NO" << endl;

Output should be “Case 1:NO”, not only “NO”.

1 Like