Language: C++

using System;
using System.Linq;

namespace ACTest
{
    class AOJ500
    {
        static void Main(string[] args)
        {
            int num = 1;
            int[] totalScore = new int[2];
            int[] roundScore = new int[2];
            while (num != 0)
            {
                totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
                //int[,] roundScore = new int[num, 2];

                num = int.Parse(Console.ReadLine());
                for (int i = 0; i < num; i++)
                {
                    ///totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
                    string[] input = Console.ReadLine().Split(' ');
                    roundScore[0] = int.Parse(input[0]);
                    roundScore[1] = int.Parse(input[1]);
                    if (roundScore[0] > roundScore[1])
                    {
                        totalScore[0] += roundScore[0] + roundScore[1];
                    }
                    else if (roundScore[0] < roundScore[1])
                    {
                        totalScore[1] += roundScore[0] + roundScore[1];
                    }
                    else
                    {
                        totalScore[0] += roundScore[0];
                        totalScore[1] += roundScore[1];
                    }


                }
                Console.WriteLine(totalScore[0] + " " + totalScore[1]);
            }
            //while (true) ;
        }

    }
}

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:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:46:6: error: expected ';' after class definition
   46 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ACTest::AOJ500::Main(int*)':
a.cc:11:16: error: structured binding declaration cannot have type 'int'
   11 |             int[] totalScore = new int[2];
      |                ^~
a.cc:11:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:16: error: empty structured binding declaration
a.cc:11:19: error: expected initializer before 'totalScore'
   11 |             int[] totalScore = new int[2];
      |                   ^~~~~~~~~~
a.cc:12:16: error: structured binding declaration cannot have type 'int'
   12 |             int[] roundScore = new int[2];
      |                ^~
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 'roundScore'
   12 |             int[] roundScore = new int[2];
      |                   ^~~~~~~~~~
a.cc:15:17: error: 'totalScore' was not declared in this scope
   15 |                 totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
      |                 ^~~~~~~~~~
a.cc:15:30: error: 'Enumerable' was not declared in this scope
   15 |                 totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
      |                              ^~~~~~~~~~
a.cc:15:48: error: expected primary-expression before 'int'
   15 |                 totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
      |                                                ^~~
a.cc:18:23: error: expected primary-expression before 'int'
   18 |                 num = int.Parse(Console.ReadLine());
      |                       ^~~
a.cc:22:21: error: 'string' was not declared in this scope
   22 |                     string[] input = Console.ReadLine().Split(' ');
      |                     ^~~~~~
a.cc:22:28: error: expected primary-expression before ']' token
   22 |                     string[] input = Console.ReadLine().Split(' ');
      |                            ^
a.cc:23:21: error: 'roundScore' was not declared in this scope
   23 |                     roundScore[0] = int.Parse(input[0]);
      |                     ^~~~~~~~~~
a.cc:23:37: error: expected primary-expression before 'int'
   23 |                     roundScore[0] = int.Parse(input[0]);
      |                                     ^~~
a.cc:24:37: error: expected primary-expression before 'int'
   24 |                     roundScore[1] = int.Parse(input[1]);
      |                                     ^~~
a.cc:41:17: error: 'Console' was not declared in this scope
   41 |                 Console.WriteLine(totalScore[0] + " " + totalScore[1]);
      |                 ^~~~~~~