Help me in solving RATINGINPRAC problem

My issue

i have solved this same problem on another account with the same code without any errors, but when i run it on this account it doesn’t work.

My code

#include <stdio.h>
int solve()
{
        int N, i;
        scanf("%d", &N);
        int A[N];
        for (i = 0; i < N; i++)
         {
             scanf("%d", &A[i]);
         }
        for (i = 1; i < N; i++);
        {
            if (A[i] < A[i - 1])
            {
             printf("no\n");
             return;
            }
        }
        printf("yes\n");
        
}

int main() 
{
	int T;
	scanf("%d", &T);
	while(T--)
	{
	    solve();
	}
	return 0;
}


Learning course: Arrays using C
Problem Link: CodeChef: Practical coding for everyone

you can solve this problem very easily with the help of checkmark . this is my code hope this is helpful for you .
include <stdio.h>
include <stdbool.h>
int main(void) {
int t;
scanf(“%d”,&t);
int i=0;
while(i<t){
bool flag =true;
int n;
scanf(“%d”,&n);
int arr[n];
for(int i=0;i<n;i++)
scanf(“%d”,&arr[i]);
for(int i=0;i<n-1;i++){

        if(arr[i+1]<arr[i])
        flag =false;
    }
    if(flag==true)
    printf("YES\n");
    else 
    printf("NO\n");
    i++;
}
return 0;

}