Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
#define rrep(i, n) for(int i = n-1; i >= 0; --i)
#define fi first
#define se second
using namespace std;
using lint = long long;
using uint = unsigned int;
using ulint = unsigned long long;
using ldouble = long double;
using pii = pair<int, int>;
using pli = pair<lint, lint>;
using pdd = pair<double, double>;
using pld = pair<ldouble, ldouble>;
using v1i = vector<int>;
using v1li = vector<lint>;
using v2i = vector<vector<int>>;
using v2li = vector<vector<lint>>;
using v3i = vector<vector<vector<int>>>;
using v3li = vector<vector<vector<lint>>>;
using v1b = vector<bool>;
using v2b = vector<vector<bool>>;
using v3b = vector<vector<vector<bool>>>;
using v1c = vector<char>;
using v2c = vector<vector<char>>;
using v3c = vector<vector<vector<char>>>;
constexpr lint mod1 = 1e9+7;
constexpr lint mod2 = 998244353;

int main() {
  int n, a, b;
  cin >> n >> a >> b;
  --a; --b;
  v2i v(n, v1i(n));
  rep(i, n-1){
    for(int j = i+1; j < n; ++j){
      int d;
      if(i <= x){
        if(j <= x) d = j - i;
        else(j <= y) d = min(j-i, y-j+x-i+1);
        else d = x-i+j-y+1;
      }
      else if(i <= y){
        if(j <= y) d = min(j-i, y-j+i-x+1);
        else d = min(j-i, i-x+j-y+1);
      }
      else d = j-i;
      ++v[i][d];
    }
  }
  rep(i, n-1){
    int s = 0;
    rep(j, n-1) s += v[j][i+1];
    cout << s << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:15: error: 'x' was not declared in this scope
   38 |       if(i <= x){
      |               ^
a.cc:40:19: error: 'y' was not declared in this scope
   40 |         else(j <= y) d = min(j-i, y-j+x-i+1);
      |                   ^
a.cc:41:9: error: expected '}' before 'else'
   41 |         else d = x-i+j-y+1;
      |         ^~~~
a.cc:38:17: note: to match this '{'
   38 |       if(i <= x){
      |                 ^
a.cc:41:24: error: 'y' was not declared in this scope
   41 |         else d = x-i+j-y+1;
      |                        ^
a.cc:43:7: error: 'else' without a previous 'if'
   43 |       else if(i <= y){
      |       ^~~~
a.cc:43:20: error: 'y' was not declared in this scope
   43 |       else if(i <= y){
      |                    ^
a.cc:44:12: error: 'j' was not declared in this scope
   44 |         if(j <= y) d = min(j-i, y-j+i-x+1);
      |            ^
a.cc:44:20: error: 'd' was not declared in this scope
   44 |         if(j <= y) d = min(j-i, y-j+i-x+1);
      |                    ^
a.cc:44:39: error: 'x' was not declared in this scope
   44 |         if(j <= y) d = min(j-i, y-j+i-x+1);
      |                                       ^
a.cc:45:14: error: 'd' was not declared in this scope
   45 |         else d = min(j-i, i-x+j-y+1);
      |              ^
a.cc:45:29: error: 'x' was not declared in this scope
   45 |         else d = min(j-i, i-x+j-y+1);
      |                             ^
a.cc:47:12: error: 'd' was not declared in this scope
   47 |       else d = j-i;
      |            ^
a.cc:47:16: error: 'j' was not declared in this scope
   47 |       else d = j-i;
      |                ^
a.cc:48:14: error: 'd' was not declared in this scope
   48 |       ++v[i][d];
      |              ^
a.cc: At global scope:
a.cc:2:19: error: expected unqualified-id before 'for'
    2 | #define rep(i, n) for(int i = 0; i < n; ++i)
      |                   ^~~
a.cc:51:3: note: in expansion of macro 'rep'
   51 |   rep(i, n-1){
      |   ^~~
a.cc:51:7: error: 'i' does not name a type; did you mean 'fi'?
   51 |   rep(i, n-1){
      |       ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i, n) for(int i = 0; i < n; ++i)
      |                                  ^
a.cc:2:41: error: expected unqualified-id before '++' token
    2 | #define rep(i, n) for(int i = 0; i < n; ++i)
      |                                         ^~
a.cc:51:3: note: in expansion of macro 'rep'
   51 |   rep(i, n-1){
      |   ^~~
a.cc:56:3: error: expected unqualified-id before 'return'
   56 |   return 0;
      |   ^~~~~~
a.cc:57:1: error: expected declaration before '}' token
   57 | }
      | ^