Language: C++

/* LOL \(0-0\) */
#include <iostream>
#include <string>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <list>
#include <set>
#include <cmath>
#include <cstring>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <stdlib.h>
#include <vector>
#include <iomanip>
#include <ctime>
#include <deque>
#include <bitset>
#include <functional>
#include <numeric>
#include <utility>
#include <cstdlib>
#include <cassert>

#define nl "\n"
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define p_un(a) ((void)a)
#define p_st(a) string(a)
#define sz(a) (int)a.size()
#define all(a) a.begin(), a.end()
#define naj ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define NL cout << endl;
#define sqr(x) (sqrt(x) * 1LL)
#define pcnt(i) __builtin_popcount(i)
#define lcm(a,b) (a * b) / __gcd(a, b)
#define E 2.718281828459045
#define PI 3.141592653589793
#define up_b upper_bound
#define low_b lower_bound
#define FILE_NAME "A"
#define show(x) cout << (#x) << ": " << x << endl

using namespace std;

typedef long long llong;
typedef long double ldouble;
typedef unsigned long long ullong;
typedef vector <llong> vl;
typedef vector <bool> vb;
typedef vector <char> vc;
typedef vector <int> vi;
typedef vector <string> vs;
typedef pair <llong, llong> pll;
typedef map <llong, llong> mll;
typedef set <llong> sl;
typedef set <char> sc;
typedef map <string, llong> msl;
typedef map <string, bool> msb;
typedef map <char, llong> mcl;
typedef map <string, string> mss;

const llong MXN = 1e6 + 1;
const llong MOD = 1e9 + 7;
const llong INF = 1e18;
const ldouble EPS = 1e-9;
#define int __int64

//int dx[]= {1,0,-1,0}; int dy[]= {0,1,0,-1}; //4 Direction
//int dx[]={1,1,0,-1,-1,-1,0,1}; int dy[]={0,1,1,1,0,-1,-1,-1};//8 direction
//int dx[]={2,1,-1,-2,-2,-1,1,2}; int dy[]={1,2,2,1,-1,-2,-2,-1};//Knight Directionmain.cpp
//int dx[]={-1,-1,+0,+1,+1,+0}; int dy[]={-1,+1,+2,+1,-1,-2}; //Hexagonal Direction

int norm_x(int m, int k) {
    int cand_x = m / k;
    return cand_x;
}

int n;
int m;
int k;
int a[MXN], dp[MXN];

main() {

	naj;
#ifdef LOL
	freopen(FILE_NAME".in", "r", stdin);
	freopen(FILE_NAME".out", "w", stdout);
#endif
    cin >> n;
    for(int i = 1; i <= n; i++) {
        cin >> a[i];
    }
    dp[0] = dp[1] = 0;
    for(int i = 2; i <= n; i++) {
        dp[i] = min(abs(a[i - 1] - a[i]) + dp[i - 1], abs(a[i - 2] - a[i]) + dp[i - 2]);
    }
    cout << dp[n];
    return 0;
}


Compiler output:
a.cc:71:13: error: '__int64' does not name a type; did you mean '__int64_t'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:78:1: note: in expansion of macro 'int'
   78 | int norm_x(int m, int k) {
      | ^~~
a.cc:71:13: error: '__int64' does not name a type; did you mean '__int64_t'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:83:1: note: in expansion of macro 'int'
   83 | int n;
      | ^~~
a.cc:71:13: error: '__int64' does not name a type; did you mean '__int64_t'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:84:1: note: in expansion of macro 'int'
   84 | int m;
      | ^~~
a.cc:71:13: error: '__int64' does not name a type; did you mean '__int64_t'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:85:1: note: in expansion of macro 'int'
   85 | int k;
      | ^~~
a.cc:71:13: error: '__int64' does not name a type; did you mean '__int64_t'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:86:1: note: in expansion of macro 'int'
   86 | int a[MXN], dp[MXN];
      | ^~~
a.cc:88:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   88 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:95:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   95 |     cin >> n;
      |            ^
      |            yn
a.cc:71:13: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:96:9: note: in expansion of macro 'int'
   96 |     for(int i = 1; i <= n; i++) {
      |         ^~~
a.cc:96:20: error: 'i' was not declared in this scope; did you mean 'vi'?
   96 |     for(int i = 1; i <= n; i++) {
      |                    ^
      |                    vi
a.cc:97:16: error: 'a' was not declared in this scope
   97 |         cin >> a[i];
      |                ^
a.cc:99:5: error: 'dp' was not declared in this scope; did you mean 'mp'?
   99 |     dp[0] = dp[1] = 0;
      |     ^~
      |     mp
a.cc:71:13: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   71 | #define int __int64
      |             ^~~~~~~
a.cc:100:9: note: in expansion of macro 'int'
  100 |     for(int i = 2; i <= n; i++) {
      |         ^~~
a.cc:100:20: error: 'i' was not declared in this scope; did you mean 'vi'?
  100 |     for(int i = 2; i <= n; i++) {
      |                    ^
      |                    vi
a.cc:101:25: error: 'a' was not declared in this scope
  101 |         dp[i] = min(abs(a[i - 1] - a[i]) + dp[i - 1], abs(a[i - 2] - a[i]) + dp[i - 2]);
      |                         ^