Language: C

#include<stdio.h>

int main(){
	int i,j,n,x[10][10]={},A,B,a,b,c,d,e,f,g,h,k,l;
	A=0;
	B=0;
	scanf("%d",&n);

	for(i=0;i<n;i++){
	scanf("%d %d %d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&k,&l);
	x[i][1]=a;
	x[i][2]=b;
	x[i][3]=c;
	x[i][4]=d;
	x[i][5]=e;
	x[i][6]=f;
	x[i][7]=g;
	x[i][8]=h;
	x[i][9]=k;
	x[i][10]=l;
	}
	for(i=0;i<n;i++){
	for(j=0;j<10;j++){
	if(x[i][j]>A){
	A=x[i][j];
	}
	else if(x[i][j]>B){
	B=x[i][j];
	}
	else if(x[i][j]<A && x[i][j]<B){
	printf("NO\n");
	break;
	}
	if(j==9){
	printf("YES\n");
	}
	}
	}
	return 0;
}
	x[7]=g;
	x[8]=h;
	x[9]=k;
	x[10]=l;
	for(j=0;j<10;j++){
	if(x[j]>A){
	A=x[j];
	}
	else if(x[j]>B){
	B=x[j];
	}
	else if(x[j]<A && x[j]<B){
	printf("NO\n");
	break;
	}
	if(j==9){
	printf("OK\n");
	}
	}
	}
	return 0;
}

Compiler output:
main.c:41:9: warning: data definition has no type or storage class
   41 |         x[7]=g;
      |         ^
main.c:41:9: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:41:14: error: 'g' undeclared here (not in a function)
   41 |         x[7]=g;
      |              ^
main.c:42:9: warning: data definition has no type or storage class
   42 |         x[8]=h;
      |         ^
main.c:42:9: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:42:9: error: conflicting types for 'x'; have 'int[8]'
main.c:41:9: note: previous definition of 'x' with type 'int[7]'
   41 |         x[7]=g;
      |         ^
main.c:42:14: error: 'h' undeclared here (not in a function)
   42 |         x[8]=h;
      |              ^
main.c:43:9: warning: data definition has no type or storage class
   43 |         x[9]=k;
      |         ^
main.c:43:9: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:43:9: error: conflicting types for 'x'; have 'int[9]'
main.c:41:9: note: previous definition of 'x' with type 'int[7]'
   41 |         x[7]=g;
      |         ^
main.c:43:14: error: 'k' undeclared here (not in a function)
   43 |         x[9]=k;
      |              ^
main.c:44:9: warning: data definition has no type or storage class
   44 |         x[10]=l;
      |         ^
main.c:44:9: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:44:9: error: conflicting types for 'x'; have 'int[10]'
main.c:41:9: note: previous definition of 'x' with type 'int[7]'
   41 |         x[7]=g;
      |         ^
main.c:44:15: error: 'l' undeclared here (not in a function)
   44 |         x[10]=l;
      |               ^
main.c:45:9: error: expected identifier or '(' before 'for'
   45 |         for(j=0;j<10;j++){
      |         ^~~
main.c:45:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   45 |         for(j=0;j<10;j++){
      |                  ^
main.c:45:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   45 |         for(j=0;j<10;j++){
      |                       ^~
main.c:60:9: error: expected identifier or '(' before '}' token
   60 |         }
      |         ^
main.c:61:9: error: expected identifier or '(' before 'return'
   61 |         return 0;
      |         ^~~~~~
main.c:62:1: error: expected identifier or '(' before '}' token
   62 | }
      | ^