Language: C++

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

namespace program
{
    class Program
    {
        static void Main()
        {
          int[] day = {0,2,0,1,0,1,0,0,1,0,1,0};
            int[] S = Input.ScanIntArray();
          Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
        }
    }

    static class Input
    {
        static public int ScanInt() { return int.Parse(Console.ReadLine()); }
        static public uint ScanUint() { return uint.Parse(Console.ReadLine()); }
        static public long ScanLong() { return long.Parse(Console.ReadLine()); }
        static public ulong ScanUlong() { return ulong.Parse(Console.ReadLine()); }
        static public int[] ScanIntArray() { return Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); }
        static public uint[] ScanUintArray() { return Console.ReadLine().Split(' ').Select(x => uint.Parse(x)).ToArray(); }
        static public long[] ScanLongArray() { return Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); }
        static public ulong[] ScanUlongArray() { return Console.ReadLine().Split(' ').Select(x => ulong.Parse(x)).ToArray(); }

        static public string ScanStr() { return Console.ReadLine(); }
        static public string[] ScanStrArray() { return ScanStr().Split(' '); }
    }

    static class MyMath
    {
        public static int GCD(int a, int b)
        {
            Func<int, int, int> gcd = null;
            gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
            return a > b ? gcd(a, b) : gcd(b, a);
        }
        public static ulong GCD(ulong a, ulong b)
        {
            Func<ulong, ulong, ulong> gcd = null;
            gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
            return a > b ? gcd(a, b) : gcd(b, a);
        }
        public static int LCM(int a, int b)
        {
            return a * b / GCD(a, b);
        }
        public static ulong LCM(ulong a, ulong b)
        {
            return a * b / GCD(a, b);
        }
    }
}


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:15:6: error: expected ';' after class definition
   15 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void program::Program::Main()':
a.cc:11:14: error: structured binding declaration cannot have type 'int'
   11 |           int[] day = {0,2,0,1,0,1,0,0,1,0,1,0};
      |              ^~
a.cc:11:14: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:14: error: empty structured binding declaration
a.cc:11:17: error: expected initializer before 'day'
   11 |           int[] day = {0,2,0,1,0,1,0,0,1,0,1,0};
      |                 ^~~
a.cc:12:16: error: structured binding declaration cannot have type 'int'
   12 |             int[] S = Input.ScanIntArray();
      |                ^~
a.cc:12:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:16: error: empty structured binding declaration
a.cc:12:19: error: expected initializer before 'S'
   12 |             int[] S = Input.ScanIntArray();
      |                   ^
a.cc:13:11: error: 'Console' was not declared in this scope
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |           ^~~~~~~
a.cc:13:30: error: 'groug' was not declared in this scope
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |                              ^~~~~
a.cc:13:36: error: 'S' was not declared in this scope
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |                                    ^
a.cc:13:47: error: 'group' was not declared in this scope
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |                                               ^~~~~
a.cc:13:60: error: expected ')' before ']' token
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |                                                            ^
a.cc:13:29: note: to match this '('
   13 |           Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
      |                             ^
a.cc: At global scope:
a.cc:19:16: error: expected unqualified-id before 'public'
   19 |         static public int ScanInt() { return int.Parse(Console.ReadLine()); }
      |                ^~~~~~
a.cc:20:16: error: expected unqualified-id before 'public'
   20 |         static public uint ScanUint() { return uint.Parse(Console.ReadLine()); }
      |                ^~~~~~
a.cc:21:16: error: expected unqualified-id before 'public'
   21 |         static public long ScanLong() { return long.Parse(Console.ReadLine()); }
      |                ^~~~~~
a.cc:22:16: error: expected unqualified-id before 'public'
   22 |         static public ulong ScanUlong() { return ulong.Parse(Console.ReadLine()); }
      |                ^~~~~~
a.cc:23:16: error: expected unqualified-id before 'public'
   23 |         static public int[] ScanIntArray() { return Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); }
      |                ^~~~~~
a.cc:24:16: error: expected unqualified-id before 'public'
   24 |         static public uint[] ScanUintArray() { return Console.ReadLine().Split(' ').Select(x => uint.Parse(x)).ToArray(); }
      |                ^~~~~~
a.cc:25:16: error: expected unqualified-id before 'public'
   25 |         static public long[] ScanLongArray() { return Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); }
      |                ^~~~~~
a.cc:26:16: error: expected unqualified-id before 'public'
   26 |         static public ulong[] ScanUlongArray() { return Console.ReadLine().Split(' ').Select(x => ulong.Parse(x)).ToArray(); }
      |                ^~~~~~
a.cc:28:16: error: expected unqualified-id before 'public'
   28 |         static public string ScanStr() { return Console.ReadLine(); }
      |                ^~~~~~
a.cc:29:16: error: expected unqualified-id before 'public'
   29 |         static public string[] ScanStrArray() { return ScanStr().Split(' '); }
      |                ^~~~~~
a.cc:30:6: error: expected ';' after class definition
   30 |     }
      |      ^
      |      ;
a.cc:17:5: error: a storage class can only be specified for objects and functions
   17 |     static class Input
      |     ^~~~~~
a.cc:34:15: error: expected ':' before 'static'
   34 |         public static int GCD(int a, int b)
      |               ^~~~~~~
      |               :
a.cc:40:15: error: expected ':' before 'static'
   40 |         public static ulong GCD(ulong a, ulong b)
      |               ^~~~~~~
      |               :
a.cc:40:23: error: 'ulong' does not name a type; did you mean 'long'?
   40 |         public static ulong GCD(ulong a, ulong b)
      |                       ^~~~~
      |                       long
a.cc:46:15: error: expected ':' before 'static'
   46 |         public static int LCM(int a, int b)
      |               ^~~~~~~
      |               :
a.cc:50:15: error: expected ':' before 'static'
   50 |         public static ulong LCM(ulong a, ulong b)
      |               ^~~~~~~
      |               :
a.cc:50:23: error: 'ulong' does not name a type; did you mean 'long'?
   50 |         public static ulong LCM(ulong a, ulong b)
      |                       ^~~~~
      |                       long
a.cc:54:6: error: expected ';' after class definition
   54 |     }
      |      ^
      |      ;
a.cc: In static member function 'static int program::MyMath::GCD(int, int)':
a.cc:36:13: error: 'Func' was not declared in this scope
   36 |             Func<int, int, int> gcd = null;
      |             ^~~~
a.cc:36:18: error: expected primary-expression before 'int'
   36 |             Func<int, int, int> gcd = null;
      |                  ^~~
a.cc:37:13: error: 'gcd' was not declared in this scope
   37 |             gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
      |             ^~~
a.cc:37:20: error: 'x' was not declared in this scope
   37 |             gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
      |                    ^
a.cc:37:23: error: 'y' was not declared in this scope
   37 |             gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
      |                       ^
a.cc:37:27: error: expected primary-expression before '>' token
   37 |             gcd = (x, y) => y == 0 ? x : gcd(y, x % y);
      |                           ^
a.cc: At global scope:
a.cc:32:5: error: a storage class can only be specified for objects and functions
   32 |     static class MyMath
      |     ^~~~~~