Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;

#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)

#define vint(v, n) vector<int> v(n); REP(i,n) cin >> v[i];
#define vvint(v, w, n) vector<int> v(n); vector<int> w(n); REP(i,n) cin >> v[i] >> w[i];
#define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
#define vdouble(v, n) vector<double> v(n); REP(i,n) cin >> v[i];
#define vvdoube(v, n1, n2) vector<vector<double> > v(n1, vector<double>(n2, 0)); REP(i,n1) REP(j,n1) cin >> v[i][j];
#define string(x) string x; cin >> x;
#define vstring(v, n) vector<string> v(n); REP(i,n){string a; std::cin >> a; v.push_back(a); }

#define all(v) (v).begin(), (v).end()
#define rall(v) (v).begin(), (v).end(), std::greater<int>()
#define len(v) (v).length()
#define FIND(s, n) (s.find(n) != s.end())
#define SORT(a) sort(all(a))

static const string abet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
static const long long MOD = 1000000007;
static const double PI=3.1415926535897932;
static const int INF = 0x3f3f3f3f;
static const int INFTY = (1 << 29);
static const long long LINFTY = (1LL << 32);

static const int dy4[]={0, 0, 1, -1};
static const int dx4[]={1, -1, 0, 0};
static const int dx8[] = {1, 1, 1, 0, 0, -1, -1, -1};
static const int dy8[] = {-1, 0, 1, -1, 1, -1, 0, 1};

int N, M, res;
int G[100][100];
int c[100], m[100];

int dfs(int b, int n) {
	c[n] = 1;
	for (int i = 0; i < N; i++) {
		if (b == i || n == i) continue;
		if (G[n][i]) {
			if (c[i] == 1) return 0;
			if (!dfs(n, i)) return 0;
		}
	}
	return 1;
}

int isPrime(int x){
  int i;
  if(x < 2) return 0;
  else if(x == 2) return 1;
  if( x%2 == 0) return 0;
  for(i = 3; i*i <= x; i += 2){
    if(x%i == 0) return 0;
  }
  return 1;
}

const int pmax = 1000000;
bool isPrime_table[pmax];
//const is necessary;
void eratos(void){
  int i, j;
  double sqrtmax=sqrt(pmax);

  REP(k, pmax) isPrime_table[k] = true; /* Initialization */

  /* Sieve process  */
  isPrime_table[0] = false;
  isPrime_table[1] = false;
          /* 0 and 1 are not prime. */
  for (i=2; i <= sqrtmax; i++){
    if (isPrime_table[i]==true){   /* i is prime. */
      for (j=i; i*j<pmax; j++){
        isPrime_table[i*j] = false; /* multiples of i are not prime. */
      }
    }
  }
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

	long long int N, A, B;
	cin >> N >> A >> B;

	vlint(X, N);

	long long tot = 0;
	REP(i, N-1) tot += min((X[i+1]-X[i])*A, B);

	cout << tot << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: two or more data types in declaration of 'type name'
   18 | #define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
      |                            ^~
a.cc:98:9: note: in expansion of macro 'vlint'
   98 |         vlint(X, N);
      |         ^~~~~
a.cc:18:34: error: template argument 1 is invalid
   18 | #define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
      |                                  ^
a.cc:98:9: note: in expansion of macro 'vlint'
   98 |         vlint(X, N);
      |         ^~~~~
a.cc:18:34: error: template argument 2 is invalid
   18 | #define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
      |                                  ^
a.cc:98:9: note: in expansion of macro 'vlint'
   98 |         vlint(X, N);
      |         ^~~~~
a.cc:18:59: error: invalid types 'int[int]' for array subscript
   18 | #define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
      |                                                           ^
a.cc:98:9: note: in expansion of macro 'vlint'
   98 |         vlint(X, N);
      |         ^~~~~
a.cc:101:34: error: invalid types 'int[int]' for array subscript
  101 |         REP(i, N-1) tot += min((X[i+1]-X[i])*A, B);
      |                                  ^
a.cc:101:41: error: invalid types 'int[int]' for array subscript
  101 |         REP(i, N-1) tot += min((X[i+1]-X[i])*A, B);
      |                                         ^