Language: C++

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

namespace CookieExchanges {
    class Program {
        static void Main(string[] args) {
            string[] s = Console.ReadLine().Split();
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            int c = int.Parse(s[2]);
            int ans = 0;
            if (a == b && b == c) {
                if (a % 2 == 0) {
                    Console.WriteLine(-1);
                    return;
                }
                else {
                    Console.WriteLine(0);
                    return;
                }
            }
            while (a % 2 == 0 && b % 2 == 0 && c % 2 == 0) {
                int tmpA = a / 2, tmpB = b / 2, tmpC = c / 2;
                a = tmpB + tmpC;
                b = tmpA + tmpC;
                c = tmpA + tmpB;
                ans++;
            }
            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: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:34:6: error: expected ';' after class definition
   34 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void CookieExchanges::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string[] s = Console.ReadLine().Split();
      |             ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
   10 |             string[] s = Console.ReadLine().Split();
      |                    ^
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int a = int.Parse(s[0]);
      |                     ^~~
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int b = int.Parse(s[1]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int c = int.Parse(s[2]);
      |                     ^~~
a.cc:17:21: error: 'Console' was not declared in this scope
   17 |                     Console.WriteLine(-1);
      |                     ^~~~~~~
a.cc:21:21: error: 'Console' was not declared in this scope
   21 |                     Console.WriteLine(0);
      |                     ^~~~~~~
a.cc:32:13: error: 'Console' was not declared in this scope
   32 |             Console.WriteLine(ans);
      |             ^~~~~~~