pilot.cpp:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
pilot.cpp:9:9: error: 'pair' does not name a type
9 | typedef pair<int, int> ii;
| ^~~~
pilot.cpp:21:1: error: 'vector' does not name a type
21 | vector <ii> v, a;
| ^~~~~~
pilot.cpp: In function 'long long int get(long long int, long long int)':
pilot.cpp:25:12: error: 'max' was not declared in this scope
25 | return max(rmq[l][_lg], rmq[r - (1 << _lg) + 1][_lg]);
| ^~~
pilot.cpp: In function 'void solve1()':
pilot.cpp:36:9: error: 'cout' was not declared in this scope
36 | cout<<ans<<'\n';
| ^~~~
pilot.cpp: In function 'void solve2()':
pilot.cpp:53:9: error: 'cout' was not declared in this scope
53 | cout<<ans<<'\n';
| ^~~~
pilot.cpp: In function 'void solve3()':
pilot.cpp:63:5: error: 'cout' was not declared in this scope
63 | cout<<ans<<'\n';
| ^~~~
pilot.cpp: In function 'void merge(long long int, long long int)':
pilot.cpp:73:22: error: 'swap' was not declared in this scope
73 | if (s[u] < s[v]) swap(u, v);
| ^~~~
pilot.cpp: In function 'void solve()':
pilot.cpp:80:10: error: 'v' was not declared in this scope
80 | sort(v.begin(), v.end()); sort(a.begin(), a.end());
| ^
pilot.cpp:80:5: error: 'sort' was not declared in this scope; did you mean 'short'?
80 | sort(v.begin(), v.end()); sort(a.begin(), a.end());
| ^~~~
| short
pilot.cpp:80:36: error: 'a' was not declared in this scope
80 | sort(v.begin(), v.end()); sort(a.begin(), a.end());
| ^
pilot.cpp:102:15: error: 'max' was not declared in this scope
102 | lst = max(lst, pos + 1);
| ^~~
pilot.cpp:103:15: error: 'id' was not declared in this scope; did you mean 'i'?
103 | query[id] = res;
| ^~
| i
pilot.cpp:105:34: error: 'cout' was not declared in this scope
105 | for (int i = 1; i <= q; ++i) cout << query[i] << '\n';
| ^~~~
pilot.cpp: In function 'int main()':
pilot.cpp:109:5: error: 'ios' has not been declared
109 | ios::sync_with_stdio(0);
| ^~~
pilot.cpp:110:5: error: 'cin' was not declared in this scope
110 | cin.tie(0); cout.tie(0);
| ^~~
pilot.cpp:110:17: error: 'cout' was not declared in this scope
110 | cin.tie(0); cout.tie(0);
| ^~~~
pilot.cpp:117:9: error: 'a' was not declared in this scope
117 | a.push_back(ii(h[i], i));
| ^
pilot.cpp:117:21: error: 'ii' was not declared in this scope; did you mean 'i'?
117 | a.push_back(ii(h[i], i));
| ^~
| i
pilot.cpp:128:60: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
128 | rmq[i][j] = max(rmq[i][j - 1], rmq[i + (1 << j - 1)][j - 1]);
| ~~^~~
pilot.cpp:128:25: error: 'max' was not declared in this scope
128 | rmq[i][j] = max(rmq[i][j - 1], rmq[i + (1 << j - 1)][j - 1]);
| ^~~
pilot.cpp:133:9: error: 'v' was not declared in this scope
133 | v.push_back(ii(y[i], i));
| ^
pilot.cpp:133:21: error: 'ii' was not declared in this scope; did you mean 'i'?
133 | v.push_back(ii(y[i], i));
| ^~
| i
pilot.cpp:135:9: error: 'max' was not declared in this scope
135 | if (max(n, q) <= 1000) solve1();
| ^~~