Language: C++

#include <array>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iterator>
#include <bitset>
#include <numeric>
#include <list>
#include <iomanip>
using namespace std;


typedef long long LL;
typedef pair<int,int> pii;
typedef pair<LL,LL> pll;

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
	v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
	stringstream ss;
	ss << f;
	ss >> t;
}


#define REP(i,n) for(int i=0;i<int(n);++i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define PB push


#define MOD 1000000007LL
#define EPS 1e-10

int main()
{
    int N, A, B;
    cin >> N >> A >> B;
    int X[N];
    REP(i, N) cin >> X[i];
    LL ans = 0;
    REP(i, N - 1)
    {
        ans += min((X[i + 1] - X[i]) * A, B);
    }
    cout << ans << endl;
    return 0;
}#include <array>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iterator>
#include <bitset>
#include <numeric>
#include <list>
#include <iomanip>
using namespace std;


typedef long long LL;
typedef pair<int,int> pii;
typedef pair<LL,LL> pll;

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
	v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
	stringstream ss;
	ss << f;
	ss >> t;
}


#define REP(i,n) for(int i=0;i<int(n);++i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define PB push


#define MOD 1000000007LL
#define EPS 1e-10

int main()
{
    int N, A, B;
    cin >> N >> A >> B;
    int X[N];
    REP(i, N) cin >> X[i];
    LL ans = 0;
    REP(i, N - 1)
    {
        ans += min((X[i + 1] - X[i]) * A, B);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:79:2: error: stray '#' in program
   79 | }#include <array>
      |  ^
a.cc:79:3: error: 'include' does not name a type
   79 | }#include <array>
      |   ^~~~~~~
a.cc:122:6: error: redefinition of 'template<class T> void initvv(std::vector<std::vector<_Tp> >&, int, int, const T&)'
  122 | void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
      |      ^~~~~~
a.cc:44:6: note: 'template<class T> void initvv(std::vector<std::vector<_Tp> >&, int, int, const T&)' previously declared here
   44 | void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
      |      ^~~~~~
a.cc:127:6: error: redefinition of 'template<class F, class T> void convert(const F&, T&)'
  127 | void convert(const F &f, T &t){
      |      ^~~~~~~
a.cc:49:6: note: 'template<class F, class T> void convert(const F&, T&)' previously declared here
   49 | void convert(const F &f, T &t){
      |      ^~~~~~~
a.cc:144:5: error: redefinition of 'int main()'
  144 | int main()
      |     ^~~~
a.cc:66:5: note: 'int main()' previously defined here
   66 | int main()
      |     ^~~~