Language: C++

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

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int N = int.Parse(s[0]);
            int M = int.Parse(s[1]);
            int[] n = new int[N];
            for(int i = 0; i < M; i++)
            {
                s = Console.ReadLine().Split(' ');
                n[int.Parse(s[0])-1]++;
                n[int.Parse(s[1])-1]++;
            }
            for(int i=0;i<N;i++) Console.WriteLine(n[i]);
        }
    }
}


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:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp1::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string[] s = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             string[] s = Console.ReadLine().Split(' ');
      |                    ^
a.cc:14:21: error: expected primary-expression before 'int'
   14 |             int N = int.Parse(s[0]);
      |                     ^~~
a.cc:15:21: error: expected primary-expression before 'int'
   15 |             int M = int.Parse(s[1]);
      |                     ^~~
a.cc:16:16: error: structured binding declaration cannot have type 'int'
   16 |             int[] n = new int[N];
      |                ^~
a.cc:16:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:16:16: error: empty structured binding declaration
a.cc:16:19: error: expected initializer before 'n'
   16 |             int[] n = new int[N];
      |                   ^
a.cc:19:17: error: 's' was not declared in this scope
   19 |                 s = Console.ReadLine().Split(' ');
      |                 ^
a.cc:19:21: error: 'Console' was not declared in this scope
   19 |                 s = Console.ReadLine().Split(' ');
      |                     ^~~~~~~
a.cc:20:17: error: 'n' was not declared in this scope
   20 |                 n[int.Parse(s[0])-1]++;
      |                 ^
a.cc:20:19: error: expected primary-expression before 'int'
   20 |                 n[int.Parse(s[0])-1]++;
      |                   ^~~
a.cc:20:19: error: expected ']' before 'int'
a.cc:21:19: error: expected primary-expression before 'int'
   21 |                 n[int.Parse(s[1])-1]++;
      |                   ^~~
a.cc:21:19: error: expected ']' before 'int'
a.cc:23:34: error: 'Console' was not declared in this scope
   23 |             for(int i=0;i<N;i++) Console.WriteLine(n[i]);
      |                                  ^~~~~~~
a.cc:23:52: error: 'n' was not declared in this scope
   23 |             for(int i=0;i<N;i++) Console.WriteLine(n[i]);
      |                                                    ^