Language: C++

import std;
T[]readarr(T=long)(){return readln.chomp.split.to!(T[]);}
void scan(T...)(ref T args){auto input=readln.chomp.split;foreach(i,t;T)args[i]=input[i].to!t;}
struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
//END OF TEMPLATE

void main(){
    ((readarr[0]+1)/2).writeln;
}


Compiler output:
a.cc:4:98: error: too many decimal points in number
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                                                                                                  ^~~~
a.cc:5:102: error: too many decimal points in number
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                                                                                                      ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import std;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'T' does not name a type
    2 | T[]readarr(T=long)(){return readln.chomp.split.to!(T[]);}
      | ^
a.cc:3:6: error: variable or field 'scan' declared void
    3 | void scan(T...)(ref T args){auto input=readln.chomp.split;foreach(i,t;T)args[i]=input[i].to!t;}
      |      ^~~~
a.cc:3:11: error: 'T' was not declared in this scope
    3 | void scan(T...)(ref T args){auto input=readln.chomp.split;foreach(i,t;T)args[i]=input[i].to!t;}
      |           ^
a.cc:4:15: error: variable 'Queue T' has initializer but incomplete type
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |               ^
a.cc:4:19: error: expected primary-expression before ']' token
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                   ^
a.cc:4:20: error: expected '}' before 'e'
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                ~   ^
a.cc:4:20: error: expected ',' or ';' before 'e'
a.cc:4:32: error: expected ')' before 't'
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                              ~ ^~
      |                                )
a.cc:4:35: error: expected ',' or ';' before '{' token
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                                   ^
a.cc:4:53: error: expected primary-expression before ']' token
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                                                     ^
a.cc:4:65: error: 'T' does not name a type
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                                                                 ^
a.cc:4:118: error: expected declaration before '}' token
    4 | struct Queue(T){T[]e;auto enq(T t){e~=t;}auto enq(T[]ts){e~=ts;}T deq(){T tp=e[0];e=e.length>1?e[1..$]:[];return tp;}}
      |                                                                                                                      ^
a.cc:5:19: error: expected primary-expression before ']' token
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                   ^
a.cc:5:20: error: expected '}' before 'e'
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                ~   ^
a.cc:5:33: error: expected ')' before 't'
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                               ~ ^~
      |                                 )
a.cc:5:36: error: expected ',' or ';' before '{' token
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                                    ^
a.cc:5:55: error: expected primary-expression before ']' token
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                                                       ^
a.cc:5:67: error: 'T' does not name a type
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                                                                   ^
a.cc:5:124: error: expected declaration before '}' token
    5 | struct Stack(T){T[]e;auto push(T t){e~=t;}auto push(T[]ts){e~=ts;}T pop(){T tp=e[$-1];e=e.length>1?e[0..$-1]:[];return tp;}}
      |                                                                                                                            ^
a.cc:8:1: error: '::main' must return 'int'
    8 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:7: error: 'readarr' was not declared in this scope
    9 |     ((readarr[0]+1)/2).writeln;
      |       ^~~~~~~