Help me in solving BREAKSTICK problem

My issue

include <stdio.h>

void check_stick(int n, int x) {
// If x equals n, Chef can simply take the whole stick without breaking
if (n == x) {
printf(“YES\n”);
}
// Check if the parity of n and x are the same and x is less than n
else if ((n % 2 == x % 2) && x < n) {
printf(“YES\n”);
} else {
printf(“NO\n”);
}
}

int main() {
int t, n, x;

// Input number of test cases
scanf("%d", &t);

// Loop over each test case
for (int i = 0; i < t; i++) {
    scanf("%d %d", &n, &x);
    check_stick(n, x);
}

return 0;

}
what is the issue

My code

#include <stdio.h>

void check_stick(int n, int x) {

    if (n == x) {
        printf("YES\n");
    }

    else if ((n % 2 == x % 2) && x < n) {
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main() {
    int t, n, x;

    scanf("%d", &t);

    for (int i = 0; i < t; i++) {
        scanf("%d %d", &n, &x);
        check_stick(n, x);
    }
    
    return 0;
}

Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300A/problems/BREAKSTICK