Language: Java

import java.util.*;
??
public class Main {
??
????????public static void main(String[] args) {
????????????????Scanner sc = new Scanner(System.in);
????????????????int n = sc.nextInt();
????????????????for(int i=0; i<n; i++){
????????????????????????int b = 0;
????????????????????????int c = 0;
????????????????????????for(int j=0; j<10; j++){
????????????????????????????????int read = sc.nextInt();
????????????????????????????????if( (b>c ? b : c) < read ){
????????????????????????????????????????if(b > c) b = read;
????????????????????????????????????????else c = read;
????????????????????????????????}
????????????????????????????????else if(b < read && c > read) b=read;
????????????????????????????????else if(c < read && b < read) c=read;
????????????????????????????????else { System.out.println("NO"); break; }
????????????????????????????????if(j==9) System.out.println("YES");
????????????????????????}
????????????????}
????????}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
??
^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
 ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
   ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
    ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
     ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
      ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
       ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
        ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
         ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
          ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
           ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
            ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
             ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
              ^
Main.java:6: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
               ^
Main.java:6: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                       ^
Main.java:6: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                                                   ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
 ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
  ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
   ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
    ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
     ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
      ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
       ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
        ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
         ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
          ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
           ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
            ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
             ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
              ^
Main.java:7: error: illegal start of expression
????????????????int n = sc.nextInt();
               ^
Main.java:7: error: '.class' expected
????????????????int n = sc.nextInt();
                    ^
Main.java:7: error: : expected
????????????????int n = sc.nextInt();
                                    ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
 ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
  ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
   ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
    ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
     ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
      ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
       ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
        ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
         ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
          ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
           ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
            ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
             ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
              ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
               ^
Main.java:8: error: illegal start of expression
????????????????for(int i=0; i<n; i++){
                ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
 ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
  ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
   ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
    ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
     ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
      ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
       ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
        ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
         ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
          ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
           ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
            ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
             ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
              ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
               ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                 ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                  ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                   ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                    ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                     ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                      ^
Main.java:9: error: illegal start of expression
????????????????????????int b = 0;
                       ^
Main.java:9: error: '.class' expected
????????????????????????int b = 0;
                            ^
Main.java:9: error: : expected
????????????????????????int b = 0;
                                 ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
 ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
  ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
   ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
    ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
     ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
      ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
       ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
        ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
         ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
          ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
           ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
            ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
             ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
              ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
               ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
                ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
                 ^
Main.java:10: error: illegal start of expression
????????????????????????int c = 0;
                  ^
100 errors
only showing the first 100 errors, of 166 total; use -Xmaxerrs if you would like to see more
printing javac parameters to: /w/javac.20260128_021751.args