Solution Chef Plays Ludo problem

My issue

My code

Click on **Next** to proceed.

Learning course: Learn SQL
Problem Link: CodeChef: Practical coding for everyone
using namespace std;

int main() {
int T; // number of test cases
cin >> T;

while (T--) {
    int X; // number rolled by the Chef on the die
    cin >> X;

    if (X == 6)
        cout << "YES" << endl;
        cout << "NO" << endl;

return 0;