criyle/codenet-compile-errors huggingface dataset:
Language: Java

package aoj0033;

import java.util.Scanner;

public class Main {
	void run() {
		return;
		// ??\???
		int n, x;
		Scanner scan = new Scanner(System.in);
		n = scan.nextInt();
		int[] ans = new int[n];
		for( int i = 0; i < n; i++ ) {
			// ??±
			int box1 = 0, box2 = 0;
			// ??????
			for( int j = 0; j < 10; j++ ) {
				x = scan.nextInt();
				if( x > box1 ) box1 = x;
				else if( x > box2 ) box2= x;
				else {
//					ans[i] = -1;
					System.out.println("NO");
					break;
				}
				if( j == 9 ) {
//					ans[i] = 1;
					System.out.println("YES");
				}
			}
		}
//		for( int i = 0; i < n; i++ ) {
//			if( ans[i] == 1 ) System.out.println("YES");
//			else System.out.println("NO");
//		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:9: error: unreachable statement
		int n, x;
		    ^
1 error
Language: Java

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] boll = new int[10];
		for(int k = 0; k < n; k++) {
			for(int i = 0; i < 10; i++) {
				boll[i] = scan.nextInt();
			}
			int judg = 0;
			for(int i = 0; i < n; i++) {
				int right,left;
				right = boll[0];
				left = 0;
				for(int m = 1; m < 10; m++) {
					if(right > boll[m]) {
						if(left < boll[m]) {
							left = boll[m];
						}
						else {
							judg = 0;
							break;
						}
					}
					else if(right < boll[m]) {
						right = boll[m];
					}
					judg = 1;
				}
				if(judg == 0) {
					System.out.println("NO");
				}
				else {
					System.out.println("YES");
				}
			}
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

/**
 * Created by The Illsionist on 2018/1/6.
 */
public class AOJ0033 {

    public static void main(String args[]){
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int[] array = new int[10];
        int preB = -1,preC = -1;
        while(N-- > 0){
            for(int i = 0;i < 10;i++){
                array[i] = input.nextInt();
            }
            if(dfs(preB,preC,0,array))
                System.out.println("YES");
            else
                System.out.println("NO");
        }
    }
    
    public static boolean dfs(int preB,int preC,int i,int[] array){
        if(i == 10)
            return true;
        if(array[i] > preB && array[i] < preC){
            return dfs(array[i],preC,i + 1,array);
        }else if(array[i] > preC && array[i] < preB){
            return dfs(preB,array[i],i + i,array);
        }else if(array[i] > preB && array[i] > preC){
            return dfs(array[i],preC,i + 1,array) || dfs(preB,array[i],i + i,array);
        }else
            return false;
    }
}


Compiler output:
Main.java:6: error: class AOJ0033 is public, should be declared in a file named AOJ0033.java
public class AOJ0033 {
       ^
1 error
Language: Java

import java.util.*;class Main{public static void main(String[]_){Integer i,n,f=0,a[]=new Integer[10];Scanner S=new Scanner(System.in);for(n=S.nextInt();n-->0;System.out.println(f>0?"NO":"YES")){for(i=0;i<10;)a[i++]=S.nextInt();for(f=i=0;i<8;)f+=a[i]<a[i+++2]?0:1;}}}


Compiler output:
Main.java:1: error: as of release 9, '_' is a keyword, and may not be used as an identifier
import java.util.*;class Main{public static void main(String[]_){Integer i,n,f=0,a[]=new Integer[10];Scanner S=new Scanner(System.in);for(n=S.nextInt();n-->0;System.out.println(f>0?"NO":"YES")){for(i=0;i<10;)a[i++]=S.nextInt();for(f=i=0;i<8;)f+=a[i]<a[i+++2]?0:1;}}}
                                                              ^
1 error
Language: Java

import java.util.Scanner;

public class Main2 {
	int[][] arr = new int[10][10];
	
	void run() {
		Scanner scan = new Scanner(System.in);
		
		int n;
		n = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < 9; j++) {
				arr[i][j] = scan.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			int ch;
			ch = check(arr[i]);
			if(ch == 1) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
		
	}
	
	int check(int[] arr) {
		int box1 = 0, box2 = 0;
		
		for(int i = 0; i < 9; i++) {
			if(arr[i] > box1) {
				box1 = arr[i];
			} else if(arr[i] > box2) {
				box2 = arr[i];
			} else {
				return -1;
			}
		}
		
		return 1;
	}
	
	public static void main(String args[]) {
		new Main2().run();
	}
}



Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.*;

public class Main {

	/**
	 * @param args
	 */
	static Scanner sc = new Scanner(System.in);
	static int[] balls;
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n = sc.nextInt();
		while(n-- > 0) {
			// read input 
			Queue<Integer> que = new LinkedList<Integer>();
			for(int i = 0; i < 10; i++) que.add(sc.nextInt());
			int b = 0, c = 0;
			while(!que.isEmpty()) {
				int d = que.poll();
				if(b < d) {
					b = d;
				} else if(c < d) {
					c = d;
				} else {
					break;
				}
			}
			if(que.isEmpty()) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

Compiler output:
Main.java:35: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args)
            throws java.io.IOException{
        Scanner scan = new Scanner(System.in);
        int [] ball =new  int [10];
int n=scan.nextInt();
            while(n--){
                for(int i=0;i<10;i++)ball[i] = scan.nextInt();
                boolean flag =true;
                Stack <Integer> b =new Stack <Integer>();
                Stack <Integer> c =new Stack<Integer>();
                int i;
                for(i=0;i<10;i++){
                    if(b.peek() > ball[i]){
                        if(c.peek()>ball[i]){
                            System.out.println("NO");
                            flag = false;
                            break;
                        }
                        else {c.push(ball[i]);}
                    }

                    else {
                        if(c.peek() > ball[i]){
                            b.push(ball[i]);}
                        else {
                                   if(ball[i]-b.peek()<ball[i]-c.peek()){
                                             b.push(ball[i]);
}
else{c.push(ball[i]);}
}

}
}if(flag)System.out.println("YES");
}
}
}

Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to boolean
            while(n--){
                   ^
1 error
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args)
            throws java.io.IOException{
        Scanner scan = new Scanner(System.in);
        int [] ball =new  int [10];
int n=scan.nextInt();
            while(n!=0){
                for(int i=0;i<10;i++)ball[i] = scan.nextInt();
                boolean flag =true;
                Stack <Integer> b =new Stack <Integer>();
                Stack <Integer> c =new Stack<Integer>();
                int i;
                for(i=0;i<10;i++){
                    if(b.peek() > ball[i]){
                        if(c.peek()>ball[i]){
                            System.out.println("NO");
                            flag = false;
                            break;
                        }
                        else {c.push(ball[i]);}
                    }

                    else {
                        if(c.peek() > ball[i]){
                            b.push(ball[i]);}
                        else {
                                   if(ball[i]-b.peek()<ball[i]-c.peek()){
                                             b.push(ball[i]);
}
else{c.push(ball[i]);}
}

}if(flag)System.out.println("YES");
n--;
}
}
}

Compiler output:
Main.java:40: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Stack;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class Ball {

	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		Stack<Integer> a = new Stack<Integer>();
		Stack<Integer> b = new Stack<Integer>();
		boolean yes_no;
		for (int i = 0; i < n; i++) {
			String s = br.readLine();
			a.push(0); b.push(0);
			yes_no = true;
			for (int j = 0; j < 10; j++) {
				int num = Integer.parseInt(s.split(" ")[j]);
				int	subA = num - a.peek(); 
				int subB = num - b.peek();
				if(subA < 0 && subB < 0){
					yes_no = false;
					break;
				}
				else if (subA > 0 && subB > 0) {
					if(subA <= subB)
						a.push(num);
					else
						b.push(num);
				}
				else if	(subB >= subA)
					b.push(num);
				else
					a.push(num);
			}
			if(yes_no) System.out.println("YES");
			else 	   System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:6: error: class Ball is public, should be declared in a file named Ball.java
public class Ball {
       ^
1 error
Language: Java

import java.util.*;
public class AOJ0033{
	static int ball[];
	public static void main(String[] args) { 
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		ball=new int[10];
		for(int i=0;i<n;i++){	
			for(int j=0;j<10;j++)ball[j]=sc.nextInt();
			result = false;
			dfs(0,0,cnt);
			if(result)System.out.println("YES");
			else System.out.println("NO");
		}
	}

	static int L=0,R=0,cnt=0;
	static boolean result;
	static boolean dfs(int L, int R, int cnt){
		if(cnt==10){
			result = true;
			return true;
		}else{
			if(L<ball[cnt])dfs(ball[cnt],R,cnt+1);
			else if(R<ball[cnt])dfs(L,ball[cnt],cnt+1);


			return false;
		}
	}
}

Compiler output:
Main.java:2: error: class AOJ0033 is public, should be declared in a file named AOJ0033.java
public class AOJ0033{
       ^
1 error
Language: Java

import java.util.Scanner;


public class Main1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int l=0;
			int r=0;
			for(int j=0; j<10; j++){
				int num = sc.nextInt();
				if(l<num){
					l=num;
				}else if(r<num){
					r=num;
				}else{
					System.out.println("NO");
					break;
				}
				if(j==9)System.out.println("YES");
			}
		}
	}
}

Compiler output:
Main.java:4: error: class Main1 is public, should be declared in a file named Main1.java
public class Main1 {
       ^
1 error
Language: C

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string.h>
using namespace std;
int main()
{
    int t;scanf("%d",&t);
    while(t--)
    {
        int a[10];
        for(int i=0;i<10;i++)
            scanf("%d",&a[i]);
        int p=0,q=0,flag=0;
        for(int i=0;i<10;i++)
        {
            if(a[i]>p)p=a[i];
            else if(a[i]>q)q=a[i];
            else {flag=1;break;}
        }
        if(flag)printf("NO\n");
        else printf("YES\n");
    }
}



Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C


#include<stdio.h>
#include<string.h>

int a[100][11];
int b[100][11],c[100][11];
int flag[100][11];
int by = 0,cy = 0;
int lb = 0;
int lc = 0;
void dfs(int y){
   // flag[x][y]=1;
    if(b[by]<a[y]){
        b[++by]=a[y];
        ++lb;
    }
    else if(c[cy]<a[y]){
        c[++cy] = a[y];
        ++lc;
    }
     ++y;
    if(y<10)
    dfs(x,y);
}
void solve(){
    int n;
    while(cin>>n&&n){
           // memset(flag,0,sizeof(flag));
    for(int i = 0; i < n; i++)
            for(int j = 0; j < 10; j++)
                cin>>a[j];
     for(int i = 0; i < n; i++){
                dfs(i,0);
                if(lb+lc==10)
            printf("YES\n");
        else
            printf("NO\n");}
    }
}


int main(){
solve();
return 0;
}




Compiler output:
main.c: In function 'dfs':
main.c:14:16: error: assignment to expression with array type
   14 |         b[++by]=a[y];
      |                ^
main.c:18:17: error: assignment to expression with array type
   18 |         c[++cy] = a[y];
      |                 ^
main.c:23:9: error: 'x' undeclared (first use in this function)
   23 |     dfs(x,y);
      |         ^
main.c:23:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:5: error: too many arguments to function 'dfs'
   23 |     dfs(x,y);
      |     ^~~
main.c:11:6: note: declared here
   11 | void dfs(int y){
      |      ^~~
main.c: In function 'solve':
main.c:27:11: error: 'cin' undeclared (first use in this function)
   27 |     while(cin>>n&&n){
      |           ^~~
main.c:33:17: error: too many arguments to function 'dfs'
   33 |                 dfs(i,0);
      |                 ^~~
main.c:11:6: note: declared here
   11 | void dfs(int y){
      |      ^~~
Language: C

#include<iostream>
#include<queue>
using namespace std;
int main (){
	int n;
	cin>>n;
	queue <int > p,q;
	int a[10];
	while(n--){
		for (int i=0;i<10;i++){
			cin>>a[i];
			if(!i) p.push(a[i]);
			if(a[i]<p.back()) q.push(a[i]);
			else p.push(a[i]);
		}
		int t=q.front(),k=0;
		q.pop();
		while(!q.empty()){
			if(t>q.front()){
				k=1;
				break;
			}else {
				q.pop();
			}
		}
		if(k) cout<<"NO"<<endl;
		else cout<<"YES"<<endl; 
	}
} 


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<stack>
using namespace std;
stack<int> ss;
stack<int> s;
int main()
{
	int f,t,a,b,i;
	scanf("%d",&t);
	while (t--)
	{
		f=0;
		for (i=0;i<10;i++)
		{
			scanf("%d",&a);
			if (i==0)
			{
				ss.push(a);
			}
			else
			{
				b=ss.top();
				if (b<a)
				{
					ss.push(a);
				}
				else
				{
					if (s.size()>0)
					{
						if (s.top()<a)
							s.push(a);
						else
						{
							f=1;
							printf("NO\n");
							break;
						}
					}
					else
					{
						s.push(a);
					}
				}
			}
		}
		if (f==0)
		{
			printf("YES\n");
		}
	}
}


Compiler output:
main.c:2:9: fatal error: stack: No such file or directory
    2 | #include<stack>
      |         ^~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<stdio.h>
#include<stack>
using namespace std;
stack<int> ss;
stack<int> s;
int main()
{
	int f,t,a,b,i;
	scanf("%d",&t);
	while (t--)
	{
		f=0;
		for (i=0;i<10;i++)
		{
			scanf("%d",&a);
			if (i==0)
			{
				ss.push(a);
			}
			else
			{
				b=ss.top();
				if (b<a)
				{
					ss.push(a);
				}
				else
				{
					if (s.size()>0)
					{
						if (s.top()<a)
							s.push(a);
						else
						{
							f=1;
							printf("NO\n");
							break;
						}
					}
					else
					{
						s.push(a);
					}
				}
			}
		}
		if (f==0)
		{
			printf("YES\n");
		}
	}
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<cstdio>
#include<string.h>
int x[15],l[15],r[15];
int kase;
void dfs(int i,int j,int k)
{
	if(i>10)
	{
		kase=1;
		return;
	}
	if(kase)
	return;
	if(x[i]>l[j-1])
	{
		l[j]=x[i];
		dfs(i+1,j+1,k);
	}
	if(x[i]>r[k-1])
	{
		r[k]=x[i];
		dfs(i+1,j,k+1);
	}
	
}
int main()
{
	int t;
	scanf("%d",&t);
	while(t--)
	{
		for(int i=1;i<=10;++i)
		{
			scanf("%d",&x[i]);
		}
		kase=0;
		dfs(1,1,1);
		if(kase)
		printf("YES\n");
		else
		printf("NO\n");
		
	}
	return 0;
}
 


Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<stack>
using namespace std;
stack<int>ss;
stack<int>ss2;
int main()
{
	int t,n,a;
	scanf("%d",&t);
	while (t--)
	{
		n=10;
		int f=0;
		while(n--)
		{
			scanf("%d",&a);
			if (ss.empty())
			{
				ss.push(a);
			}
			else if (ss.top()<a)
			{
				ss.push(a);
			}
			else if (ss2.empty())
			{
				ss2.push(a);
			}
			else if (ss2.top()<a)
			{
				ss2.push(a);
			}
			else
			{
				f=1;
				break; 
			}
		}
		if (f==1)
		{
			printf("NO\n");
		}
		else
		{
			printf("YES\n");
		}
	}
	return 0;
}


Compiler output:
main.c:2:9: fatal error: stack: No such file or directory
    2 | #include<stack>
      |         ^~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int ball[10];

int func(int i,int a,int b);
int main(){
  int n;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    
    for(j=0;j<10;j++){
      scanf("%d",&ball[j]);
    }
    
    if(func(0,0,0)){
      printf("YES\n");
    }
    else{
      printf("NO\n");
    }
  }
  return 0;
}

int func(int i,int a,int b){
  int ans=0;
  if(i==10){
    ans=1;
    return;
  }
  else if(a<ball[i]){
    a=ball[i]; i++;
    func(i,a,b);
  }
  else if(b<ball[i]){
    b=ball[i]; i++;
    func(i,a,b);
  }

  return ans;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=0;i<n;i++){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: 'j' undeclared (first use in this function)
   10 |     for(j=0;j<10;j++){
      |         ^
main.c: In function 'func':
main.c:28:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   28 |     return;
      |     ^~~~~~
main.c:24:5: note: declared here
   24 | int func(int i,int a,int b){
      |     ^~~~
Language: C


import java.util.Scanner;

public class Main {

	private static final int N = 12;
	int[] a = new int[N];
	int small = 0;
	int big = 0;
	
	private int s;     //数?的个数
	
	public static void main(String[] args) {
		Main m = new Main();
		m.Sort();
	}
	
	
	private void Sort(){	

		Scanner sc = new Scanner(System.in);
		s = sc.nextInt();
		
		while(s!= 0){	
			
			for (int i = 1; i <= 10; i++) {
				a[i] = sc.nextInt();
			}
			
			/*for (int m = 1; m <= 10; m++) {
				System.out.print(a[m]+ " ");
			}*/
			
			if (a[1] > a[2]) {
				big = a[1];
				small = a[2];
			}else {
				big = a[2];
				small = a[1];
			}
			//System.out.println(big);
			
			for (int j = 3; j <= 10; j++) {
				if (a[j] > big) {
					big = a[j];
				}
				if (a[j] < big && a[j] > small) {
					small = a[j];
				}
				if (a[j] < small) {
					System.out.printf("NO\n");
					break;
				}
				if (j == 10) {
					System.out.printf("YES\n");
				}
			}
			//System.out.println(s);
			s--;
				
		}
		sc.close();
	}
}

Compiler output:
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.Scanner;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.Scanner;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
Language: C

    int n, i , j, k;
    int d[10];
    int s;
    scanf( "%d", &n );
    for(i = 0; i < n; i++){
        for(j = 0; j < 10; j++){
        scanf( "%d", &d[j]);
            s = 0;
                for(k = 0; k < j; k++){
                    if(d[k] > d[j]) s++;
                }
            if (s >= 2){
                printf( "NO" );
                break;
            }
        }
        if(j == 10) printf( "YES" );
        putchar('\n');
    }

    return 0;
}

Compiler output:
main.c:4:12: error: expected declaration specifiers or '...' before string constant
    4 |     scanf( "%d", &n );
      |            ^~~~
main.c:4:18: error: expected declaration specifiers or '...' before '&' token
    4 |     scanf( "%d", &n );
      |                  ^
main.c:5:5: error: expected identifier or '(' before 'for'
    5 |     for(i = 0; i < n; i++){
      |     ^~~
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 |     for(i = 0; i < n; i++){
      |                  ^
main.c:5:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 |     for(i = 0; i < n; i++){
      |                        ^~
main.c:21:5: error: expected identifier or '(' before 'return'
   21 |     return 0;
      |     ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
  int n;
  int i, j;
  int Ball[10];
  int left[10], right[10];
  int left_num, right_num;
  int flag;

  scanf("%d", &n);

  for (i = 0; i < n; i++) {

    for (j = 0; j < 10; j++)
      scanf("%d", &Ball[j]);

    for (j = 0; j < 10; j++) {
      left[j] = 0;
      right[j] = 0;
    }

    left_num = 0;
    right_num = 0;
    flag = 1;

    for (j = 0; j < 10; j++) {

      if (left_num == 0 || left[left_num - 1] < Ball[j]) {
        left[left_num] = Ball[j];
        left_num++;
      }

      else if (right_num == 0 || right[right_num - 1] < Ball[j]) {
        right[right_num] = Ball[j];
        right_num++;
      }

      else if {
        flag = 0;
        break;
      }
    }

    if (flag)
      printf("YES\n");

    else
      printf("NO\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:15: error: expected '(' before '{' token
   40 |       else if {
      |               ^
      |               (
Language: C

#include <stdio.h>
int l[12],r[12],q[12];
bool yon;
void dfs(int i,int j,int k){
	if(i == 10){
		yon = true;
		return ;
	}
	if(q[i] > l[j-1]){
		l[j] = q[i];
		dfs(i+1,j+1,k);
	}
	if(q[i] > r[k-1]){
		r[k] = q[i];
		dfs(i+1,j,k+1);
	}
}
int main()
{
	int t;
	scanf("%d",&t);
	while(t--){
		for(int i=1;i<=10;i++){
			scanf("%d",&q[i]);
		}
		yon = false;
		l[0] = -1;
		r[0] = -1;
		dfs(1,1,1);
		if(yon){
			printf("YES\n");
		}else{
			printf("NO\n"); 
		}
	}
	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'bool'
    3 | bool yon;
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | int l[12],r[12],q[12];
main.c: In function 'dfs':
main.c:6:23: error: 'true' undeclared (first use in this function)
    6 |                 yon = true;
      |                       ^~~~
main.c:6:23: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:26:23: error: 'false' undeclared (first use in this function)
   26 |                 yon = false;
      |                       ^~~~~
main.c:26:23: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int a[20];
int b[20],c[20];
int n;
bool flag;
void dfs(int i,int j,int k)
{
    if(i == 10)
    {
        flag = true;
        return ;
    }
    if(flag == true)
        return ;
    if(a[i] > c[j - 1]){
       /* printf("游街、?\n");
        printf("a[i] = %d\n",a[i]);
        printf("c[j - 1] = %d\n",c[j - 1]);*/
        c[j] = a[i];
       /* printf("c[j] = %d\n",c[j]);
        printf("j = %d\n",j);
        printf("i = %d\n",i);*/
        dfs(i + 1,j + 1,k);
        memset(c,0,sizeof(c));
    }
    printf("\n\n\n\n");
    if(a[i] > b[k - 1]){
        //printf("a[i] = %d\n",a[i]);
       // printf("b[k - 1] = %d\n",b[k - 1]);
        b[k] = a[i];
       /* printf("b[k] = %d\n",b[k]);
        printf("k = %d\n",k);
        printf("i = %d\n",i);*/
        dfs(i + 1,j,k + 1);
    }
   // printf("OKOKOK\n\n\n\n");
    return ;
}
int main()
{
    scanf("%d",&n);
    while(n --)
    {
        for(int i = 0; i < 10; i++)
            scanf("%d",&a[i]);
        flag = false;
        memset(b,0,sizeof(b));
        memset(c,0,sizeof(c));

        dfs(0 , 1, 1);
        //printf("b[1] = %d\n",b[1]);

        if(flag == true)
            printf("YES\n");
        else
            printf("NO\n");
       /* for(int i = 0; i <= 10; i++)
            printf("%d ",c[i]);
        printf("\n");
        for(int i = 0; i <= 10; i++)
            printf("%d ",b[i]);
        printf("b[1] = %d\n",b[1]);*/
    }
    return 0;
}
/*
100
1 2 3 4 8 5 6 7 9 10
*/

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(void)
{
	int a,b,c[10]={0},d,e,f,g,h,i;
	int e=1;
	scanf("%d",&a);
	for (b=0;b<a;b++)
	{
		e=1;
		for (i=0;i<10;i++)
		{
			scanf("%d",&f);
			c[i]=f;
		}
		if (e==1)
		{
			for (g=1;g<8;g++)
			{
				if (c[g-1]<c[g]||c[g-1]<c[g+1])
				{
					e=0;
				}
				else 
				{
					e=1;
				}
			}
		}
		if (e==0)
		{
			printf("Yes\n");
		}
		if (e==1)
		{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: redeclaration of 'e' with no linkage
    5 |         int e=1;
      |             ^
main.c:4:29: note: previous declaration of 'e' with type 'int'
    4 |         int a,b,c[10]={0},d,e,f,g,h,i;
      |                             ^
Language: C

#include <stdio.h>
int main(void)
{
	int a,b,c[10]={0},d,e,f,g,h,i;
	int e=1;
	scanf("%d",&a);
	for (b=0;b<a;b++)
	{
		e=1;
		for (i=0;i<10;i++)
		{
			scanf("%d",&f);
			c[i]=f;
		}
		if (e==1)
		{
			for (g=1;g<9;g++)
			{
				if (c[g-1]<c[g]||c[g-1]<c[g+1])
				{
					e=0;
				}
				else 
				{
					e=1;
				}
			}
		}
		if (e==0)
		{
			printf("Yes\n");
		}
		if (e==1)
		{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: redeclaration of 'e' with no linkage
    5 |         int e=1;
      |             ^
main.c:4:29: note: previous declaration of 'e' with type 'int'
    4 |         int a,b,c[10]={0},d,e,f,g,h,i;
      |                             ^
Language: C

#include<stdio.h>
int main(void)
{
	int n,ball[10],b[10]={0},c[10]={0},i;
	scanf("%d",&n);
	for(n0=0;n0<n;n0++){
		int p=0,o=0,j=0;
		for(i=0;i<10;i++){
			scanf("%d",&ball[i]);
		}
		b[0]=ball[0];
		c[0]=0;
		for(i=1;i<10;i++){
			if(b[p]<ball[i]){
				p++;
				b[p]=ball[i];
			}
			else if(c[o-1]<ball[i]&&o>=1||c[o]<ball[i]&&o==0){
				c[o]=ball[i];
				o++;
			}
			else{
				j=1;
				c[o]=ball[i];
				o++;
			}
		}
		if(j==0){
			printf("YES\n");
		}
		else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'n0' undeclared (first use in this function); did you mean 'n'?
    6 |         for(n0=0;n0<n;n0++){
      |             ^~
      |             n
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

int main()
{
    int T;

        while(T--)
        {
            int a,b=-1,c=-1;
            bool X=true;
            for(int i=0;i<10;i++)
            {
                cin>>a;
                if(X)
                {
                    if(a>b)
                    {
                        b=a;
                    }
                    else if(a>c)
                    {
                        c=a;
                    }
                    else
                    {
                        X=false;
                    }
                }
            }
            if(X)
            {
                cout<<"YES"<<endl;
            }
            else
            {
                cout<<"NO"<<endl;
            }
        }
        return 0;
}
v

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<cstdio>
int main()
{
	int k;
	scanf("%d",&k);
	while(k>0)
	{
		int last1=-100,last2=-100,flag=0;
		for(int i=1;i<=10;i++)
		{
			int x;
			scanf("%d",&x);
			if(x>last1)
				last1=x;
			else if(x>last2)
				last2=x;
			else
			{
				printf("NO\n");
				flag=1;
				break;
			}
		}
		if(flag==0)
			printf("YES\n");
		k--;
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int num[12];
int a[12];
int b[12];
int main()
{
    int n;
    cin>>n;
    while(n--)
    {
        memset(a,0,sizeof(a));
        memset(b,0,sizeof(b));
        for(int i=0;i<10;i++)
        {
            cin>>num[i];
        }
        a[0]=num[0];
        b[0]=num[1];
        int k=0;
        int t=0;
        int flag=0;
        for(int i=2;i<10;i++)
        {
            if(num[i]>a[k])
            {
                a[k]=num[i];
                k++;
            }
            else if(num[i]<a[k]&&num[i]>b[t])
            {
                b[t]=num[i];
                t++;
            }
            else
            {
                flag=1;
                break;
            }
        }
        if(flag)
            cout<<"NO"<<endl;
        else
            cout<<"YES"<<endl;
    }
    return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

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

int n,m;

map<string,string> dic;

int main(){
    #ifdef LOCAL_DEFINE
        freopen("rush_in.txt", "r", stdin);
    #endif
    ios::sync_with_stdio(0),cin.tie(0);
    cin >> n >> m;
    for (int i = 1;i <= n;i++){
        string name,ip;
        cin >> name>>ip;
        dic[ip] = name;
    }
    for (int i = 1;i <= m;i++){
        string x,y;
        cin >> x >> y;
        cout<<x<<' '<<y;
        int len = y.size();
        y = y.substr(0,len-1);
        cout<<" #"<<dic[y]<<endl;
    }
    return 0;
}


Compiler output:
main.c:2:10: fatal error: bits/stdc++.h: No such file or directory
    2 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
main(){
  int a[10],i,n;
  scanf("%d",&n);
  for(i=0,i<n,i++){
    scanf("%d%d%d%d%d%d%d%d%d%d",a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);
    if(a[0]<a[2]<a[4]<a[6]<a[8]&&a[1]<a[3]<a[5]<a[7]<a[9]) printf("YES");
    else printf("NO");

  return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |   for(i=0,i<n,i++){
      |                  ^
      |                  ;
main.c:5:18: error: expected expression before ')' token
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C

#include <stdio.h>
main(){
  int a[10],i,n;
  scanf("%d",&n);
  for(i=0,i<n,i++){
    scanf("%d%d%d%d%d%d%d%d%d%d",a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);
    if(a[0]<a[2]<a[4]<a[6]<a[8]&&a[1]<a[3]<a[5]<a[7]<a[9]) printf("YES");
    else printf("NO");
}
  return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |   for(i=0,i<n,i++){
      |                  ^
      |                  ;
main.c:5:18: error: expected expression before ')' token
Language: C

#include <stdio.h>
main(){
  int a[10],i,n;
  scanf("%d",&n);
  for(i=0,i<n,i++){
    scanf("%d%d%d%d%d%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],&a[7],&a[8],&a[9]);
    if(a[0]<a[2]<a[4]<a[6]<a[8]&&a[1]<a[3]<a[5]<a[7]<a[9]) printf("YES");
    else printf("NO");
  }
  return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |   for(i=0,i<n,i++){
      |                  ^
      |                  ;
main.c:5:18: error: expected expression before ')' token
Language: C

main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
}exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'm' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:96: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(n,i,t,m,c){scanf("%d",&n);while(n--)for(m=99,i=c=0;i++<10;c+=t<m,m=m>t?t:m)scanf("%d",&t);puts(c<3?"YES":"NO");
      |                                                                                                ^~~~
main.c:1:96: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c: At top level:
main.c:2:7: error: expected declaration specifiers or '...' before numeric constant
    2 | }exit(0);}
      |       ^
main.c:2:10: error: expected identifier or '(' before '}' token
    2 | }exit(0);}
      |          ^
Language: C

i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |   ^
main.c:1:5: error: return type defaults to 'int' [-Wimplicit-int]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |     ^~~~
main.c: In function 'main':
main.c:1:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |                 ^~~~
main.c:1:27: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |                           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
main.c:1:27: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |                           ^~~~~
main.c:1:27: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:54: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | i,f;main(b){for(gets(&b);~scanf("%d",&b);i-10||(f=i/=puts(f?"NO":"YES")))f|=b-++i>2;}
      |                                                      ^~~~
main.c:1:54: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

#include<stdio.h>

int main()
{
	int ball[10];
	int i,j,n,larger,flg;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d %d %d %d %d %d %d %d %

d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
		flg=1;
		larger=0;
		for(j=0;j<10;j++)
		{
			while(ball[j]<larger)
			{
				if(ball[j+1]<ball[j])
				{
					flg=0;
				}
				j++;
			}
			larger=ball[j];
		}
		if(flg)
		{
			puts("YES");
		}
		else
		{
			puts("NO");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: warning: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^
main.c:11:23: error: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:2: warning: missing terminating " character
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
main.c:13:2: error: missing terminating " character
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:1: error: 'd' undeclared (first use in this function)
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      | ^
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:2: error: expected ')' before 'flg'
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
      |  )
   14 |                 flg=1;
      |                 ~~~
main.c:11:22: note: to match this '('
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                      ^
main.c:35:18: error: expected ';' before '}' token
   35 |                 }
      |                  ^
      |                  ;
   36 |         }
      |         ~
Language: C

#include<stdio.h>

int main()
{
	int ball[10];
	int i,j,n,larger,flg;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d %d %d %d %d %d %d %d %

d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
		flg=1;
		larger=0;
		for(j=0;j<10;j++)
		{
			while(ball[j]<larger&&j<8)
			{
				if(ball[j+1]!=ball[j]+1&&ball[j+1]<larger)
				{
					flg=0;
				}
				j++;
			}
			larger=ball[j];
		}
		if(flg)
		{
			puts("YES");
		}
		else
		{
			puts("NO");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: warning: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^
main.c:11:23: error: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:2: warning: missing terminating " character
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
main.c:13:2: error: missing terminating " character
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:1: error: 'd' undeclared (first use in this function)
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      | ^
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:2: error: expected ')' before 'flg'
   13 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
      |  )
   14 |                 flg=1;
      |                 ~~~
main.c:11:22: note: to match this '('
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                      ^
main.c:35:18: error: expected ';' before '}' token
   35 |                 }
      |                  ^
      |                  ;
   36 |         }
      |         ~
Language: C

#include<stdio.h>

int main()
{
	int ball[10];
	int i,j,n,larger,flg;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d %d %d %d %d %d %d %d %
d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
		flg=1;
		larger=0;
		for(j=0;j<10;j++)
		{
			while(ball[j]<larger&&j<8)
			{
				if(ball[j+1]!=ball[j]+1&&ball[j+1]<larger)
				{
					flg=0;
				}
				j++;
			}
			larger=ball[j];
		}
		if(flg)
		{
			puts("YES");
		}
		else
		{
			puts("NO");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: warning: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^
main.c:11:23: error: missing terminating " character
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:2: warning: missing terminating " character
   12 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
main.c:12:2: error: missing terminating " character
   12 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:1: error: 'd' undeclared (first use in this function)
   12 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      | ^
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:2: error: expected ')' before 'flg'
   12 | d",ball,ball+1,ball+2,ball+3,ball+4,ball+5,ball+6,ball+7,ball+8,ball+9);
      |  ^
      |  )
   13 |                 flg=1;
      |                 ~~~
main.c:11:22: note: to match this '('
   11 |                 scanf("%d %d %d %d %d %d %d %d %d %
      |                      ^
main.c:34:18: error: expected ';' before '}' token
   34 |                 }
      |                  ^
      |                  ;
   35 |         }
      |         ~
Language: C

a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |       ^
main.c:1:9: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |         ^~~~
main.c: In function 'main':
main.c:1:9: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                       ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:55: error: lvalue required as left operand of assignment
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                                                       ^
main.c:1:72: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);--i?c>a?a:c>b?b:t=c,i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                                                                        ^~~~
main.c:1:72: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |       ^
main.c:1:9: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |         ^~~~
main.c: In function 'main':
main.c:1:9: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                       ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:77: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                                                                             ^~~~
main.c:1:77: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:96: error: expected ')' before ':' token
    1 | a,b,c,t;main(i){for(;~scanf("%d",&c);*(c>a?&a:c>b?&b:&t)=c,!i|i%10||(a=b=t=!puts(t?"NO":"YES")):0);}
      |                    ~                                                                           ^
      |                                                                                                )