Help me in solving RATINGINPRAC problem

My issue

wrogng output

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        int d[n];
        for(int i=0;i<n;i++){
            cin>>d[i];
        }
        // your code goes here
        for(int i=0;i<n;i++)
        {
            if(d[i]<=d[i+1])
            {
                cout<<"yes"<<endl;
            }
            else if(d[i]>d[i+1])
            {
                cout<<"no"<<endl;
            }
        }
    }

}

Learning course: Arrays using C++
Problem Link: Difficulty Rating Order Practice Problem in - CodeChef

@akshitha_g
here plzz refer my c++ code

#include <iostream>
using namespace std;

void solve(){
    int n;
    cin>>n;
    int arr[n];
    for(int i=0;i<n;i++){
        cin>>arr[i];
    }
    int call;
    call=0;
    for(int i=1;i<n;i++){
        if(arr[i]<arr[i-1]){
         call=1;
         break;
        }
        
    }
    if(call==1){
     cout<<"no"<<'\n';   
    }
    else{
        cout<<"yes"<<'\n';
    }
     
}
int main() {
    int t;
    cin>>t;
    while(t--){
        solve();
        
    }
	// your code goes here
	return 0;
}


this is my code

@akshitha_g
looks fine now.