Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace ConsoleApplication32
{
    class Program
    {
        static void Main(string[] args)
        {
			int a = int.Parse(Console.ReadLine());
			int[] b = new int[a];
			int ans;
			for(int c =0;c<a;c++)
			b[c]=int.Parse(Console.ReadLine());
			for(int c =0;c<a;c++)
			ans+=b[c];
			Array.Sort(b);
			if(ans%10!=0)
			Console.WriteLine(ans);
			else for(int c =0;c<a;c++)
			{
				ans=ans-b[c]
				if(ans%10!=0)
				break;
			}
			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: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:28:48: error: expected '}' at end of input
   28 |                         Console.WriteLine(ans);
      |                                                ^
a.cc:9:5: note: to match this '{'
    9 |     {
      |     ^
a.cc: In static member function 'static void ConsoleApplication32::Program::Main(int*)':
a.cc:12:33: error: expected primary-expression before 'int'
   12 |                         int a = int.Parse(Console.ReadLine());
      |                                 ^~~
a.cc:13:28: error: structured binding declaration cannot have type 'int'
   13 |                         int[] b = new int[a];
      |                            ^~
a.cc:13:28: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:28: error: empty structured binding declaration
a.cc:13:31: error: expected initializer before 'b'
   13 |                         int[] b = new int[a];
      |                               ^
a.cc:16:25: error: 'b' was not declared in this scope
   16 |                         b[c]=int.Parse(Console.ReadLine());
      |                         ^
a.cc:16:30: error: expected primary-expression before 'int'
   16 |                         b[c]=int.Parse(Console.ReadLine());
      |                              ^~~
a.cc:18:30: error: 'b' was not declared in this scope
   18 |                         ans+=b[c];
      |                              ^
a.cc:19:25: error: 'Array' was not declared in this scope
   19 |                         Array.Sort(b);
      |                         ^~~~~
a.cc:19:36: error: 'b' was not declared in this scope
   19 |                         Array.Sort(b);
      |                                    ^
a.cc:21:25: error: 'Console' was not declared in this scope
   21 |                         Console.WriteLine(ans);
      |                         ^~~~~~~
a.cc:28:25: error: 'Console' was not declared in this scope
   28 |                         Console.WriteLine(ans);
      |                         ^~~~~~~
a.cc:28:48: error: expected '}' at end of input
   28 |                         Console.WriteLine(ans);
      |                                                ^
a.cc:11:9: note: to match this '{'
   11 |         {
      |         ^
a.cc: At global scope:
a.cc:28:48: error: expected unqualified-id at end of input
   28 |                         Console.WriteLine(ans);
      |                                                ^
a.cc:28:48: error: expected '}' at end of input
a.cc:7:1: note: to match this '{'
    7 | {
      | ^