Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp1
{
	class Program
	{
		static void Main(string[] args)
		{
			int[][] hoge = new int[4][];
			for(int i = 0; i < 4; i++)
			{
				hoge[i] = new int[4];
			}

			var input1 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();
			var input2 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();
			var input3 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();

			hoge[input1[0]][input1[1]] += 1;
			hoge[input1[1]][input1[0]] += 1;
			hoge[input2[0]][input2[1]] += 1;
			hoge[input2[1]][input2[0]] += 1;
			hoge[input3[0]][input3[1]] += 1;
			hoge[input3[1]][input3[0]] += 1;

			int[] sum=new int[4];
			for(int i = 0; i < 4; i++)
			{
				sum[i] = hoge[i].Sum();
			}
			var temp = sum.OrderBy(x => x).ToArray();

			if(temp[0] == 1 && temp[1] == 1 && temp[2] == 2 && temp[3] == 2)
			{
				Console.WriteLine("YES");
			}
			else
			{
				Console.WriteLine("NO");
			}
			Console.ReadLine();
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:34: error: 'string' has not been declared
   10 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:10:43: error: expected ',' or '...' before 'args'
   10 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:46:10: error: expected ';' after class definition
   46 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ConsoleApp1::Program::Main(int*)':
a.cc:12:28: error: structured binding declaration cannot have type 'int'
   12 |                         int[][] hoge = new int[4][];
      |                            ^~
a.cc:12:28: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:28: error: empty structured binding declaration
a.cc:12:30: error: expected initializer before '[' token
   12 |                         int[][] hoge = new int[4][];
      |                              ^
a.cc:15:33: error: 'hoge' was not declared in this scope
   15 |                                 hoge[i] = new int[4];
      |                                 ^~~~
a.cc:18:25: error: 'var' was not declared in this scope
   18 |                         var input1 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();
      |                         ^~~
a.cc:19:29: error: expected ';' before 'input2'
   19 |                         var input2 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();
      |                             ^~~~~~
a.cc:20:29: error: expected ';' before 'input3'
   20 |                         var input3 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)-1).ToArray();
      |                             ^~~~~~
a.cc:22:25: error: 'hoge' was not declared in this scope
   22 |                         hoge[input1[0]][input1[1]] += 1;
      |                         ^~~~
a.cc:22:30: error: 'input1' was not declared in this scope
   22 |                         hoge[input1[0]][input1[1]] += 1;
      |                              ^~~~~~
a.cc:24:30: error: 'input2' was not declared in this scope
   24 |                         hoge[input2[0]][input2[1]] += 1;
      |                              ^~~~~~
a.cc:26:30: error: 'input3' was not declared in this scope
   26 |                         hoge[input3[0]][input3[1]] += 1;
      |                              ^~~~~~
a.cc:29:28: error: structured binding declaration cannot have type 'int'
   29 |                         int[] sum=new int[4];
      |                            ^~
a.cc:29:28: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:29:28: error: empty structured binding declaration
a.cc:29:31: error: expected initializer before 'sum'
   29 |                         int[] sum=new int[4];
      |                               ^~~
a.cc:32:33: error: 'sum' was not declared in this scope
   32 |                                 sum[i] = hoge[i].Sum();
      |                                 ^~~
a.cc:34:29: error: expected ';' before 'temp'
   34 |                         var temp = sum.OrderBy(x => x).ToArray();
      |                             ^~~~
a.cc:36:28: error: 'temp' was not declared in this scope
   36 |                         if(temp[0] == 1 && temp[1] == 1 && temp[2] == 2 && temp[3] == 2)
      |                            ^~~~
a.cc:38:33: error: 'Console' was not declared in this scope
   38 |                                 Console.WriteLine("YES");
      |                                 ^~~~~~~
a.cc:42:33: error: 'Console' was not declared in this scope
   42 |                                 Console.WriteLine("NO");
      |                                 ^~~~~~~
a.cc:44:25: error: 'Console' was not declared in this scope
   44 |                         Console.ReadLine();
      |                         ^~~~~~~