Language: C++

#pragma comment(linker, "/STACK:36777216")

#include <bits/stdc++.h>
using namespace std;
#define LSON            id << 1 , l , mid
#define RSON            id << 1 | 1 , mid + 1 , r
#define ROOT            1 , 1 , n
#define CLR(x , y)      memset(x , y , sizeof(x))
#define LOWBIT(x)       x & (-x)
#define FORN(i , a , n)  for(int i = (a) ; i <= (n) ; ++i)
#define FORP(i , n , a)  for(int i = (n) ; i >= (a) ; --i)
#define CASE(x)		printf("Case %d: ", x)
#define SFD(x)      scanf("%lf" , &x)
#define SFC(x)      scanf(" %c" , &x)
#define SFS(x)      scanf(" %s" , x)
#define SFI(x)      scanf("%d" , &x)
#define SFL(x)      scanf("%lld" , &x)
#define SFI64(x)    scanf("%I64d" , &x)
#define PFF(x)         printf("%f" , x)
#define PFD(x)         printf("%lf" , x)
#define PFI(x)         printf("%d" , x)
#define PFC(x)         printf("%c" , x)
#define PFS(x)         printf("%s" , x)
#define PFI64(x)       printf("%I64d" , x)
#define PFL(x)         printf("%lld" , x)
#define SPACE          printf(" ")
#define PUT            puts("")
#define LPUP(i , j , k) for(int i = j ; i <= k ; ++i)
#define LPDW(i , j , k) for(int i = j ; i >= k ; --i)
#define PB(x)          push_back(x)
#define ALL(A)         A.begin(), A.end()
#define SZ(A)          int((A).size())
#define LBD(A, x)      (lower_bound(ALL(A), x) - A.begin())
#define UBD(A, x)      (upper_bound(ALL(A), x) - A.begin())
#define LOCAL
static const double PI = acos(-1.0);
static const double EPS = 1e-8;
static const int INF = 0X3fffffff;
typedef __int64 LL;
typedef double DB;
template<class T> inline
T read(T &x)
{
    x = 0;
    int f = 1 ; char ch = getchar();
    while (ch < '0' || ch > '9') {if (ch == '-') f = -1; ch = getchar();}
    while (ch >= '0' && ch <= '9') {x = x * 10 + ch - '0'; ch = getchar();}
    x *= f;
}

/************************Little Pea****************************/

LL t;
int n;
LL p;
LL now;
int main()
{
#ifndef ONLINE_JUDGE
    //freopen("D:\\系统优化\\Desktop\\littlepea\\in.data" , "r" , stdin);
#endif
    read(n);read(t);
    LL pre = 0;
    LPUP(i , 1 , n)
    {
        read(p);
        if(p >= now)
        {
            now += t;
        }
        else
        {
            now += (p - pre);
        }
        pre = p;
    }
    PFI64(now);

#ifndef ONLINE_JUDGE
    fclose(stdin), fclose(stdout);
#endif
}


Compiler output:
a.cc:39:9: error: '__int64' does not name a type; did you mean '__int64_t'?
   39 | typedef __int64 LL;
      |         ^~~~~~~
      |         __int64_t
a.cc:53:1: error: 'LL' does not name a type; did you mean 'ALL'?
   53 | LL t;
      | ^~
      | ALL
a.cc:55:1: error: 'LL' does not name a type; did you mean 'ALL'?
   55 | LL p;
      | ^~
      | ALL
a.cc:56:1: error: 'LL' does not name a type; did you mean 'ALL'?
   56 | LL now;
      | ^~
      | ALL
a.cc: In function 'int main()':
a.cc:62:18: error: 't' was not declared in this scope; did you mean 'tm'?
   62 |     read(n);read(t);
      |                  ^
      |                  tm
a.cc:63:5: error: 'LL' was not declared in this scope; did you mean 'ALL'?
   63 |     LL pre = 0;
      |     ^~
      |     ALL
a.cc:66:14: error: 'p' was not declared in this scope
   66 |         read(p);
      |              ^
a.cc:67:17: error: 'now' was not declared in this scope; did you mean 'pow'?
   67 |         if(p >= now)
      |                 ^~~
      |                 pow
a.cc:73:25: error: 'pre' was not declared in this scope; did you mean 'pread'?
   73 |             now += (p - pre);
      |                         ^~~
      |                         pread
a.cc:75:9: error: 'pre' was not declared in this scope; did you mean 'pread'?
   75 |         pre = p;
      |         ^~~
      |         pread
a.cc:77:11: error: 'now' was not declared in this scope; did you mean 'pow'?
   77 |     PFI64(now);
      |           ^~~
a.cc:24:41: note: in definition of macro 'PFI64'
   24 | #define PFI64(x)       printf("%I64d" , x)
      |                                         ^
a.cc: In instantiation of 'T read(T&) [with T = int]':
a.cc:62:9:   required from here
   62 |     read(n);read(t);
      |     ~~~~^~~
a.cc:49:1: warning: no return statement in function returning non-void [-Wreturn-type]
   49 | }
      | ^