Language: C++

using System;
class _0033
{
    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        for (int i = 0; i < n; i++)
        {
            string[] data = Console.ReadLine().Split();
            Console.WriteLine(Judge(data) ? "YES" : "NO");
        }
    }
    public static bool Judge(string[] data)
    {
        int right = 0;
        int left = 0;
        for (int i = 0; i < data.Length; i++)
        {
            if (right < int.Parse(data[i])) right = int.Parse(data[i]);
            else if (left < int.Parse(data[i])) left = int.Parse(data[i]);
            else return false;
        }
        return true;
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:13:11: error: expected ':' before 'static'
   13 |     public static bool Judge(string[] data)
      |           ^~~~~~~
      |           :
a.cc:13:30: error: 'string' has not been declared
   13 |     public static bool Judge(string[] data)
      |                              ^~~~~~
a.cc:13:39: error: expected ',' or '...' before 'data'
   13 |     public static bool Judge(string[] data)
      |                                       ^~~~
a.cc:25:2: error: expected ';' after class definition
   25 | }
      |  ^
      |  ;
a.cc: In static member function 'static void _0033::Main()':
a.cc:6:17: error: expected primary-expression before 'int'
    6 |         int n = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] data = Console.ReadLine().Split();
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] data = Console.ReadLine().Split();
      |                    ^
a.cc:10:13: error: 'Console' was not declared in this scope
   10 |             Console.WriteLine(Judge(data) ? "YES" : "NO");
      |             ^~~~~~~
a.cc:10:37: error: 'data' was not declared in this scope
   10 |             Console.WriteLine(Judge(data) ? "YES" : "NO");
      |                                     ^~~~
a.cc: In static member function 'static bool _0033::Judge(int*)':
a.cc:17:29: error: 'data' was not declared in this scope
   17 |         for (int i = 0; i < data.Length; i++)
      |                             ^~~~
a.cc:19:25: error: expected primary-expression before 'int'
   19 |             if (right < int.Parse(data[i])) right = int.Parse(data[i]);
      |                         ^~~
a.cc:19:25: error: expected ')' before 'int'
a.cc:19:16: note: to match this '('
   19 |             if (right < int.Parse(data[i])) right = int.Parse(data[i]);
      |                ^
a.cc:19:53: error: expected primary-expression before 'int'
   19 |             if (right < int.Parse(data[i])) right = int.Parse(data[i]);
      |                                                     ^~~
a.cc:20:29: error: expected primary-expression before 'int'
   20 |             else if (left < int.Parse(data[i])) left = int.Parse(data[i]);
      |                             ^~~
a.cc:20:29: error: expected ')' before 'int'
a.cc:20:21: note: to match this '('
   20 |             else if (left < int.Parse(data[i])) left = int.Parse(data[i]);
      |                     ^
a.cc:20:56: error: expected primary-expression before 'int'
   20 |             else if (left < int.Parse(data[i])) left = int.Parse(data[i]);
      |                                                        ^~~