Language: C++

using System;
using System.Linq;//リストの使用
using System.Collections.Generic;
using System.Text;//テキストの高速出力に必要
class Program
{
	static void Main()
	{
		int n = int.Parse(Console.ReadLine());
		long[,] vertexes = new long[n,2];
		long answer = 1;
		for(long i = 0; i < n; i++)
		{
			long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '),long.Parse);
			vertexes[i,0] = nums[0];
			vertexes[i,1] = nums[1];
		}
	for(long i = 1; i <= 100000; i++)
	{
		if(vertexes[0,0] % i == 0 || vertexes[0,1] % i == 0)
		{
			for(int j = 1; j < n; j++)
			{
				if(vertexes[j,0] % i == 0 || vertexes[j,1] % i == 0)
				{
					if(j == n-1) answer = i;
				}else break;
			}
		}
	}


	
	Console.WriteLine(answer);

	}

}


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.Linq;//リストの使用
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;//テキストの高速出力に必要
      |       ^~~~~~
a.cc:38:2: error: expected ';' after class definition
   38 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:9:25: error: expected primary-expression before 'int'
    9 |                 int n = int.Parse(Console.ReadLine());
      |                         ^~~
a.cc:10:22: error: expected identifier before ',' token
   10 |                 long[,] vertexes = new long[n,2];
      |                      ^
a.cc:10:22: error: expected ']' before ',' token
a.cc:10:21: error: structured binding declaration cannot have type 'long int'
   10 |                 long[,] vertexes = new long[n,2];
      |                     ^
a.cc:10:21: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:21: error: empty structured binding declaration
a.cc:10:25: error: expected initializer before 'vertexes'
   10 |                 long[,] vertexes = new long[n,2];
      |                         ^~~~~~~~
a.cc:14:29: error: structured binding declaration cannot have type 'long int'
   14 |                         long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '),long.Parse);
      |                             ^~
a.cc:14:29: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:14:29: error: empty structured binding declaration
a.cc:14:32: error: expected initializer before 'nums'
   14 |                         long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '),long.Parse);
      |                                ^~~~
a.cc:15:25: error: 'vertexes' was not declared in this scope
   15 |                         vertexes[i,0] = nums[0];
      |                         ^~~~~~~~
a.cc:15:41: error: 'nums' was not declared in this scope
   15 |                         vertexes[i,0] = nums[0];
      |                                         ^~~~
a.cc:20:20: error: 'vertexes' was not declared in this scope
   20 |                 if(vertexes[0,0] % i == 0 || vertexes[0,1] % i == 0)
      |                    ^~~~~~~~
a.cc:34:9: error: 'Console' was not declared in this scope
   34 |         Console.WriteLine(answer);
      |         ^~~~~~~