Language: C++

import std.algorithm;
import std.array;
import std.ascii;
import std.bigint;
import std.complex;
import std.container;
import std.conv;
import std.functional;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

auto readInts() {
	return array(map!(to!int)(readln().strip().split()));
}
auto readInt() {
	return readInts()[0];
}
auto readLongs() {
	return array(map!(to!long)(readln().strip().split()));
}
auto readLong() {
	return readLongs()[0];
}

void readlnTo(T...)(ref T t) {
    auto s = readln().split();
    assert(s.length == t.length);
    foreach(ref ti; t) {
        ti = s[0].to!(typeof(ti));
        s = s[1..$];
    }
}

const real eps = 1e-10;

const long p = 1_000_000_000 + 7;

void main(){
    auto n = readLong();
    long[] s;
    foreach(i; iota(n)) {
        s ~= readLong();
    }
    auto ans = s.sum();
    if(ans % 10 != 0) {
        writeln(ans);
        return;
    }
    s.sort();
    auto t = s.filter!(a => a % 10 != 0)().array();
    t.sort();
    if(t.empty()) {
        writeln(0);
        return;
    }
    writeln(ans - t[0]);
}



Compiler output:
a.cc:33:15: error: too many decimal points in number
   33 |         s = s[1..$];
      |               ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import std.algorithm;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.array;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.ascii;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.bigint;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import std.complex;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import std.container;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import std.conv;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import std.functional;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: 'import' does not name a type
    9 | import std.math;
      | ^~~~~~
a.cc:9:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: 'import' does not name a type
   10 | import std.range;
      | ^~~~~~
a.cc:10:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: 'import' does not name a type
   11 | import std.stdio;
      | ^~~~~~
a.cc:11:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:1: error: 'import' does not name a type
   12 | import std.string;
      | ^~~~~~
a.cc:12:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:13:1: error: 'import' does not name a type
   13 | import std.typecons;
      | ^~~~~~
a.cc:13:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc: In function 'auto readInts()':
a.cc:16:22: error: 'map' was not declared in this scope
   16 |         return array(map!(to!int)(readln().strip().split()));
      |                      ^~~
a.cc:16:16: error: 'array' was not declared in this scope
   16 |         return array(map!(to!int)(readln().strip().split()));
      |                ^~~~~
a.cc: In function 'auto readLongs()':
a.cc:22:22: error: 'map' was not declared in this scope
   22 |         return array(map!(to!long)(readln().strip().split()));
      |                      ^~~
a.cc:22:16: error: 'array' was not declared in this scope
   22 |         return array(map!(to!long)(readln().strip().split()));
      |                ^~~~~
a.cc: At global scope:
a.cc:28:6: error: variable or field 'readlnTo' declared void
   28 | void readlnTo(T...)(ref T t) {
      |      ^~~~~~~~
a.cc:28:15: error: 'T' was not declared in this scope
   28 | void readlnTo(T...)(ref T t) {
      |               ^
a.cc:37:7: error: 'real' does not name a type
   37 | const real eps = 1e-10;
      |       ^~~~
a.cc:39:16: error: unable to find numeric literal operator 'operator""_000_000_000'
   39 | const long p = 1_000_000_000 + 7;
      |                ^~~~~~~~~~~~~
a.cc:41:1: error: '::main' must return 'int'
   41 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:43:9: error: structured binding declaration cannot have type 'long int'
   43 |     long[] s;
      |         ^~
a.cc:43:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:43:9: error: empty structured binding declaration
a.cc:43:12: error: expected initializer before 's'
   43 |     long[] s;
      |            ^
a.cc:44:13: error: 'i' was not declared in this scope
   44 |     foreach(i; iota(n)) {
      |             ^
a.cc:44:16: error: 'iota' was not declared in this scope
   44 |     foreach(i; iota(n)) {
      |                ^~~~
a.cc:47:16: error: 's' was not declared in this scope
   47 |     auto ans = s.sum();
      |                ^
a.cc:49:9: error: 'writeln' was not declared in this scope
   49 |         writeln(ans);
      |         ^~~~~~~
a.cc:50:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   50 |         return;
      |         ^~~~~~
a.cc:56:9: error: 'writeln' was not declared in this scope
   56 |         writeln(0);
      |         ^~~~~~~
a.cc:57:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   57 |         return;
      |         ^~~~~~
a.cc:59:5: error: 'writeln' was not declared in this scope
   59 |     writeln(ans - t[0]);
      |     ^~~~~~~