Language: C++

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

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		var d = ria();
		Console.WriteLine(d.Sum() % 24);
	}

	public Sol(){
		
	}

	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);}
	static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));}
	static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));}
	static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(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;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Text;
      |       ^~~~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void TEST::Main()':
a.cc:9:17: error: 'Sol' was not declared in this scope
    9 |                 Sol mySol =new Sol();
      |                 ^~~
a.cc:10:17: error: 'mySol' was not declared in this scope
   10 |                 mySol.Solve();
      |                 ^~~~~
a.cc: At global scope:
a.cc:15:15: error: expected ':' before 'void'
   15 |         public void Solve(){
      |               ^~~~~
      |               :
a.cc:20:15: error: expected ':' before 'Sol'
   20 |         public Sol(){
      |               ^~~~
      |               :
a.cc:24:16: error: 'String' does not name a type
   24 |         static String rs(){return Console.ReadLine();}
      |                ^~~~~~
a.cc:28:16: error: 'String' does not name a type
   28 |         static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);}
      |                ^~~~~~
a.cc:29:19: error: expected unqualified-id before '[' token
   29 |         static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));}
      |                   ^
a.cc:30:20: error: expected unqualified-id before '[' token
   30 |         static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));}
      |                    ^
a.cc:31:22: error: expected unqualified-id before '[' token
   31 |         static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(e));}
      |                      ^
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In member function 'void Sol::Solve()':
a.cc:16:17: error: 'var' was not declared in this scope
   16 |                 var d = ria();
      |                 ^~~
a.cc:17:17: error: 'Console' was not declared in this scope
   17 |                 Console.WriteLine(d.Sum() % 24);
      |                 ^~~~~~~
a.cc:17:35: error: 'd' was not declared in this scope; did you mean 'rd'?
   17 |                 Console.WriteLine(d.Sum() % 24);
      |                                   ^
      |                                   rd
a.cc: In static member function 'static int Sol::ri()':
a.cc:25:32: error: expected primary-expression before 'int'
   25 |         static int ri(){return int.Parse(Console.ReadLine());}
      |                                ^~~
a.cc:25:32: error: expected ';' before 'int'
a.cc:25:35: error: expected unqualified-id before '.' token
   25 |         static int ri(){return int.Parse(Console.ReadLine());}
      |                                   ^
a.cc: In static member function 'static long int Sol::rl()':
a.cc:26:33: error: expected primary-expression before 'long'
   26 |         static long rl(){return long.Parse(Console.ReadLine());}
      |                                 ^~~~
a.cc:26:33: error: expected ';' before 'long'
a.cc:26:37: error: expected unqualified-id before '.' token
   26 |         static long rl(){return long.Parse(Console.ReadLine());}
      |                                     ^
a.cc: In static member function 'static double Sol::rd()':
a.cc:27:35: error: expected primary-expression before 'double'
   27 |         static double rd(){return double.Parse(Console.ReadLine());}
      |                                   ^~~~~~
a.cc:27:35: error: expected ';' before 'double'
a.cc:27:41: error: expected unqualified-id before '.' token
   27 |         static double rd(){return double.Parse(Console.ReadLine());}
      |                                         ^