Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace ConsoleApplication26
{
    class Program
    {
        static void Main(string[] args)
        {
			string s,t;
			while((s=Console.ReadLine())!=null)
			{
				t=Console.ReadLine();
				int[] a = s.Split().Select(int.Parse).ToArray();
				int[] b = t.Split().Select(int.Parse).ToArray();
				int d,e;
				d=e=0;
				for(int c =0;c<4;c++)
				{
					if(a[c]==b[c])d++;
					else{
						bool flag=false;
						for(int h =0;h<4;h++)
						{
							if(a[c]==b[h])flag=true;
						}
						if(flag==true)e++;
					}
				}
				Console.WriteLine("{0} {1}",d,e);
			}
		}
    }
}
 
 

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:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:35:6: error: expected ';' after class definition
   35 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication26::Program::Main(int*)':
a.cc:12:25: error: 'string' was not declared in this scope
   12 |                         string s,t;
      |                         ^~~~~~
a.cc:13:32: error: 's' was not declared in this scope
   13 |                         while((s=Console.ReadLine())!=null)
      |                                ^
a.cc:13:34: error: 'Console' was not declared in this scope
   13 |                         while((s=Console.ReadLine())!=null)
      |                                  ^~~~~~~
a.cc:13:55: error: 'null' was not declared in this scope
   13 |                         while((s=Console.ReadLine())!=null)
      |                                                       ^~~~
a.cc:15:33: error: 't' was not declared in this scope
   15 |                                 t=Console.ReadLine();
      |                                 ^
a.cc:16:36: error: structured binding declaration cannot have type 'int'
   16 |                                 int[] a = s.Split().Select(int.Parse).ToArray();
      |                                    ^~
a.cc:16:36: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:16:36: error: empty structured binding declaration
a.cc:16:39: error: expected initializer before 'a'
   16 |                                 int[] a = s.Split().Select(int.Parse).ToArray();
      |                                       ^
a.cc:17:36: error: structured binding declaration cannot have type 'int'
   17 |                                 int[] b = t.Split().Select(int.Parse).ToArray();
      |                                    ^~
a.cc:17:36: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:17:36: error: empty structured binding declaration
a.cc:17:39: error: expected initializer before 'b'
   17 |                                 int[] b = t.Split().Select(int.Parse).ToArray();
      |                                       ^
a.cc:22:44: error: 'a' was not declared in this scope
   22 |                                         if(a[c]==b[c])d++;
      |                                            ^
a.cc:22:50: error: 'b' was not declared in this scope
   22 |                                         if(a[c]==b[c])d++;
      |                                                  ^