Language: C++

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

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int[] D = new int[3];
            D[0] = int.Parse(str[0]);
            D[1] = int.Parse(str[1]);
            D[2] = int.Parse(str[2]);
            int[] d = new int[3];

            int ans = 0;
            if(D[0] % 2 == 1 || D[1] % 2 == 1 || D[2] % 2 == 1)
            {
                Console.WriteLine("0");
            }
            if (D[0] == D[1] && D[1] == D[2]) Console.WriteLine("-1");
            else
            {
                while (0 == (D[0] % 2 + D[1] % 2 + D[2] % 2))
                {
                    ans++;
                    d[0] = (D[1] + D[2]) / 2;
                    d[1] = (D[0] + D[2]) / 2;
                    d[2] = (D[0] + D[1]) / 2;
                    D[0] = d[0];
                    D[1] = d[1];
                    D[2] = d[2];
                }
                Console.WriteLine(ans);
            }
        }
    }
}

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:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:41:6: error: expected ';' after class definition
   41 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void test::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string[] str = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             string[] str = Console.ReadLine().Split(' ');
      |                    ^
a.cc:14:16: error: structured binding declaration cannot have type 'int'
   14 |             int[] D = new int[3];
      |                ^~
a.cc:14:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:14:16: error: empty structured binding declaration
a.cc:14:19: error: expected initializer before 'D'
   14 |             int[] D = new int[3];
      |                   ^
a.cc:15:13: error: 'D' was not declared in this scope
   15 |             D[0] = int.Parse(str[0]);
      |             ^
a.cc:15:20: error: expected primary-expression before 'int'
   15 |             D[0] = int.Parse(str[0]);
      |                    ^~~
a.cc:16:20: error: expected primary-expression before 'int'
   16 |             D[1] = int.Parse(str[1]);
      |                    ^~~
a.cc:17:20: error: expected primary-expression before 'int'
   17 |             D[2] = int.Parse(str[2]);
      |                    ^~~
a.cc:18:16: error: structured binding declaration cannot have type 'int'
   18 |             int[] d = new int[3];
      |                ^~
a.cc:18:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:18:16: error: empty structured binding declaration
a.cc:18:19: error: expected initializer before 'd'
   18 |             int[] d = new int[3];
      |                   ^
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine("0");
      |                 ^~~~~~~
a.cc:25:47: error: 'Console' was not declared in this scope
   25 |             if (D[0] == D[1] && D[1] == D[2]) Console.WriteLine("-1");
      |                                               ^~~~~~~
a.cc:31:21: error: 'd' was not declared in this scope
   31 |                     d[0] = (D[1] + D[2]) / 2;
      |                     ^
a.cc:38:17: error: 'Console' was not declared in this scope
   38 |                 Console.WriteLine(ans);
      |                 ^~~~~~~