Language: C++

#include <vector>
#include <math.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <iomanip>
#include <deque>
#include <map>
​
typedef long long ll;
#define rep(i, a, n) for(int i = a; i<n; i++)
#define ALL(a) begin(a), end(a)
#define mii map<int, int>
#define msi map<string, int>
#define vi vector<int>
#define vl vector<ll>
#define MOD 1000000007
#define INF 1e9
#define showVector(v) rep(i,0,v.size()){p(v[i]);p(" ")} pl("")
# define p(s) std::cout << s ;
# define pl(s)  std::cout << s << endl;
using namespace std;
​
// 素数判定 O(√n)
bool is_prime(int n){
    for(int i = 2; i * i <= n; i++){
        if(n % i == 0) return false;
    }
    return true;
}
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
​
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
int main() {
    int N;
    cin >> N;
    //vector<vector<int>> data(3, vector<int>(4));
    //初期値0
    //vector<int> data(i, 0);
    vl a(N);
    rep(i, 0, N) {
        cin >> a[i];
    }
    sort(a.begin(), a.end());
    ll ans;
    rep(i, 0, N) {
        if (i==0.5*N-1) {
            if (a[i+1]- a[i] ==0) {
                ans=0;
            } else {
               ans = a[i+1]-a[i];
               }
        }
    }
            
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc:10:1: error: '\U0000200b' does not name a type
   10 | ​
      |  
a.cc:24:1: error: '\U0000200b' does not name a type
   24 | ​
      |  
a.cc: In function 'bool chmin(T&, T)':
a.cc:38:1: error: '\U0000200b' was not declared in this scope
   38 | ​
      |  
a.cc: In function 'int main()':
a.cc:17:19: error: 'll' was not declared in this scope; did you mean 'vl'?
   17 | #define vl vector<ll>
      |                   ^~
a.cc:53:5: note: in expansion of macro 'vl'
   53 |     vl a(N);
      |     ^~
a.cc:17:21: error: template argument 1 is invalid
   17 | #define vl vector<ll>
      |                     ^
a.cc:53:5: note: in expansion of macro 'vl'
   53 |     vl a(N);
      |     ^~
a.cc:17:21: error: template argument 2 is invalid
   17 | #define vl vector<ll>
      |                     ^
a.cc:53:5: note: in expansion of macro 'vl'
   53 |     vl a(N);
      |     ^~
a.cc:55:17: error: invalid types 'int[int]' for array subscript
   55 |         cin >> a[i];
      |                 ^
a.cc:57:12: error: request for member 'begin' in 'a', which is of non-class type 'int'
   57 |     sort(a.begin(), a.end());
      |            ^~~~~
a.cc:57:23: error: request for member 'end' in 'a', which is of non-class type 'int'
   57 |     sort(a.begin(), a.end());
      |                       ^~~
a.cc:58:7: error: expected ';' before 'ans'
   58 |     ll ans;
      |       ^~~~
      |       ;
a.cc:61:18: error: invalid types 'int[int]' for array subscript
   61 |             if (a[i+1]- a[i] ==0) {
      |                  ^
a.cc:61:26: error: invalid types 'int[int]' for array subscript
   61 |             if (a[i+1]- a[i] ==0) {
      |                          ^
a.cc:62:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   62 |                 ans=0;
      |                 ^~~
      |                 abs
a.cc:64:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   64 |                ans = a[i+1]-a[i];
      |                ^~~
      |                abs
a.cc:64:23: error: invalid types 'int[int]' for array subscript
   64 |                ans = a[i+1]-a[i];
      |                       ^
a.cc:64:30: error: invalid types 'int[int]' for array subscript
   64 |                ans = a[i+1]-a[i];
      |                              ^
a.cc:69:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   69 |     cout << ans << endl;
      |             ^~~
      |             abs