Language: C++

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

    class Program
    {
        static void Main(string[] args)
        {
            string[] temp = Console.ReadLine().Split(' ');
            int cou = 0;
            int[] colle = new int[3];
            foreach (string s in temp) {
                colle[cou] = int.Parse(s);
                cou++;
            }
            if (colle[0] - colle[1] * 2 + colle[2] == 0) {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
        
    }


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:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:11:13: error: 'string' was not declared in this scope
   11 |             string[] temp = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:11:20: error: expected primary-expression before ']' token
   11 |             string[] temp = Console.ReadLine().Split(' ');
      |                    ^
a.cc:13:16: error: structured binding declaration cannot have type 'int'
   13 |             int[] colle = new int[3];
      |                ^~
a.cc:13:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:16: error: empty structured binding declaration
a.cc:13:19: error: expected initializer before 'colle'
   13 |             int[] colle = new int[3];
      |                   ^~~~~
a.cc:14:29: error: expected ')' before 's'
   14 |             foreach (string s in temp) {
      |                             ^
a.cc:14:21: note: to match this '('
   14 |             foreach (string s in temp) {
      |                     ^
a.cc:14:13: error: 'foreach' was not declared in this scope
   14 |             foreach (string s in temp) {
      |             ^~~~~~~
a.cc:18:17: error: 'colle' was not declared in this scope
   18 |             if (colle[0] - colle[1] * 2 + colle[2] == 0) {
      |                 ^~~~~
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine("NO");
      |                 ^~~~~~~