Language: C++

#include <bits/stdc++.h>
#define ll l
#define pb push_back
#define pll pair<ll, ll>
#define fi first
#define se second
#define task "problemset"
const int maxx = 1e6 + 7;
using namespace std;
struct dang
{
    ll lf, rt, pos;
};
dang b[maxx];
ll m, n, a[maxx], ans, k, T, tong, p, t, q;
bool check;
vector<ll> kq;
map<int, int>
priority_queue< pll, vector<pll>, greater<pll> > pr;

void sol()
{
    cin >> n;
    for(int i = 1; i <= n; i ++)
    {
        cin >> a[i];
    }
    for(int i = 1; i <= n; )
    {
        if(a[i+1] - a[i] > 30 || a[i] > a[i+1])
        {
            ans += 3;
            ++i;
        }
        else if(a[i+1] - a[i] > 20)
        {
            i += 2;
            ans += 2;
        }
        else if()
    }
}
int main()
{
	ios_base:: sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
    if(fopen(task".inp", "r"))
    {
		freopen(task".inp","r",stdin);
		freopen(task".out","w",stdout);
    }
	sol();
}



Compiler output:
a.cc:2:12: error: 'l' does not name a type; did you mean 'll'?
    2 | #define ll l
      |            ^
a.cc:12:5: note: in expansion of macro 'll'
   12 |     ll lf, rt, pos;
      |     ^~
a.cc:2:12: error: 'l' does not name a type; did you mean 'll'?
    2 | #define ll l
      |            ^
a.cc:15:1: note: in expansion of macro 'll'
   15 | ll m, n, a[maxx], ans, k, T, tong, p, t, q;
      | ^~
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:17:8: note: in expansion of macro 'll'
   17 | vector<ll> kq;
      |        ^~
a.cc:17:10: error: template argument 1 is invalid
   17 | vector<ll> kq;
      |          ^
a.cc:17:10: error: template argument 2 is invalid
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:18: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                  ^~
a.cc:19:17: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                 ^~~
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:22: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                      ^~
a.cc:19:17: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                 ^~~
a.cc:4:24: error: template argument 1 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:17: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                 ^~~
a.cc:4:24: error: template argument 2 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:17: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                 ^~~
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:18: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                  ^~
a.cc:19:29: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                             ^~~
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:22: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                      ^~
a.cc:19:29: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                             ^~~
a.cc:4:24: error: template argument 1 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:29: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                             ^~~
a.cc:4:24: error: template argument 2 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:29: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                             ^~~
a.cc:19:32: error: template argument 1 is invalid
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                ^
a.cc:19:32: error: template argument 2 is invalid
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:18: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                  ^~
a.cc:19:43: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                           ^~~
a.cc:2:12: error: 'l' was not declared in this scope
    2 | #define ll l
      |            ^
a.cc:4:22: note: in expansion of macro 'll'
    4 | #define pll pair<ll, ll>
      |                      ^~
a.cc:19:43: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                           ^~~
a.cc:4:24: error: template argument 1 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:43: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                           ^~~
a.cc:4:24: error: template argument 2 is invalid
    4 | #define pll pair<ll, ll>
      |                        ^
a.cc:19:43: note: in expansion of macro 'pll'
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                           ^~~
a.cc:19:46: error: template argument 1 is invalid
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                              ^
a.cc:19:48: error: template argument 1 is invalid
   19 | priority_queue< pll, vector<pll>, greater<pll> > pr;
      |                                                ^
a.cc:19:48: error: template argument 2 is invalid
a.cc:19:48: error: template argument 3 is invalid
a.cc: In function 'void sol()':
a.cc:23:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   23 |     cin >> n;
      |            ^
      |            yn
a.cc:26:16: error: 'a' was not declared in this scope
   26 |         cin >> a[i];
      |                ^
a.cc:30:12: error: 'a' was not declared in this scope
   30 |         if(a[i+1] - a[i] > 30 || a[i] > a[i+1])
      |            ^
a.cc:32:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |             ans += 3;
      |             ^~~
      |             abs
a.cc:38:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   38 |             ans += 2;
      |             ^~~
      |             abs
a.cc:40:17: error: expected primary-expression before ')' token
   40 |         else if()
      |                 ^
a.cc:41:5: error: expected primary-expression before '}' token
   41 |     }
      |     ^