0_0_38703311_31329.cpp:7:13: error: 'll' was not declared in this scope; did you mean 'ls'?
7 | vector<pair<ll,ll>> v[N << 2], ans;
| ^~
| ls
0_0_38703311_31329.cpp:7:16: error: 'll' was not declared in this scope; did you mean 'ls'?
7 | vector<pair<ll,ll>> v[N << 2], ans;
| ^~
| ls
0_0_38703311_31329.cpp:7:16: error: template argument 1 is invalid
0_0_38703311_31329.cpp:7:16: error: template argument 2 is invalid
0_0_38703311_31329.cpp:7:18: error: template argument 1 is invalid
7 | vector<pair<ll,ll>> v[N << 2], ans;
| ^~
0_0_38703311_31329.cpp:7:18: error: template argument 2 is invalid
0_0_38703311_31329.cpp:8:13: error: 'll' was not declared in this scope; did you mean 'ls'?
8 | vector<pair<ll, ll>> solve(vector<pair<int,int>> L, vector<pair<int,int>> R) {
| ^~
| ls
0_0_38703311_31329.cpp:8:17: error: 'll' was not declared in this scope; did you mean 'ls'?
8 | vector<pair<ll, ll>> solve(vector<pair<int,int>> L, vector<pair<int,int>> R) {
| ^~
| ls
0_0_38703311_31329.cpp:8:17: error: template argument 1 is invalid
0_0_38703311_31329.cpp:8:17: error: template argument 2 is invalid
0_0_38703311_31329.cpp:8:19: error: template argument 1 is invalid
8 | vector<pair<ll, ll>> solve(vector<pair<int,int>> L, vector<pair<int,int>> R) {
| ^~
0_0_38703311_31329.cpp:8:19: error: template argument 2 is invalid
0_0_38703311_31329.cpp: In function 'int solve(std::vector<std::pair<int, int> >, std::vector<std::pair<int, int> >)':
0_0_38703311_31329.cpp:9:17: error: 'll' was not declared in this scope; did you mean 'ls'?
9 | vector<pair<ll, ll>> Ver, c;
| ^~
| ls
0_0_38703311_31329.cpp:9:21: error: template argument 1 is invalid
9 | vector<pair<ll, ll>> Ver, c;
| ^~
0_0_38703311_31329.cpp:9:23: error: template argument 1 is invalid
9 | vector<pair<ll, ll>> Ver, c;
| ^~
0_0_38703311_31329.cpp:9:23: error: template argument 2 is invalid
0_0_38703311_31329.cpp:14:17: error: request for member 'push_back' in 'Ver', which is of non-class type 'int'
14 | Ver.push_back({a, 1});
| ^~~~~~~~~
0_0_38703311_31329.cpp:15:17: error: request for member 'push_back' in 'Ver', which is of non-class type 'int'
15 | Ver.push_back({b, -1});
| ^~~~~~~~~
0_0_38703311_31329.cpp:18:14: error: request for member 'begin' in 'Ver', which is of non-class type 'int'
18 | sort(Ver.begin(), Ver.end(), [&](pair<ll, ll> x, pair<ll, ll> y) {
| ^~~~~
0_0_38703311_31329.cpp:18:27: error: request for member 'end' in 'Ver', which is of non-class type 'int'
18 | sort(Ver.begin(), Ver.end(), [&](pair<ll, ll> x, pair<ll, ll> y) {
| ^~~
0_0_38703311_31329.cpp: In lambda function:
0_0_38703311_31329.cpp:19:14: error: request for member 'first' in 'x', which is of non-class type 'int'
19 | if(x.first < y.first) return x.first < y.first;
| ^~~~~
0_0_38703311_31329.cpp:19:24: error: request for member 'first' in 'y', which is of non-class type 'int'
19 | if(x.first < y.first) return x.first < y.first;
| ^~~~~
0_0_38703311_31329.cpp:19:40: error: request for member 'first' in 'x', which is of non-class type 'int'
19 | if(x.first < y.first) return x.first < y.first;
| ^~~~~
0_0_38703311_31329.cpp:19:50: error: request for member 'first' in 'y', which is of non-class type 'int'
19 | if(x.first < y.first) return x.first < y.first;
| ^~~~~
0_0_38703311_31329.cpp:20:18: error: request for member 'second' in 'x', which is of non-class type 'int'
20 | return x.second > y.second;
| ^~~~~~
0_0_38703311_31329.cpp:20:29: error: request for member 'second' in 'y', which is of non-class type 'int'
20 | return x.second > y.second;
| ^~~~~~
0_0_38703311_31329.cpp: In function 'int solve(std::vector<std::pair<int, int> >, std::vector<std::pair<int, int> >)':
0_0_38703311_31329.cpp:23:7: error: expected ';' before 'A'
23 | ll A = 0;
| ^~
| ;
0_0_38703311_31329.cpp:24:28: error: request for member 'size' in 'Ver', which is of non-class type 'int'
24 | for(int i = 0; i < Ver.size(); i ++) {
| ^~~~
0_0_38703311_31329.cpp:25:19: error: invalid types 'int[int]' for array subscript
25 | tot += Ver[i].second;
| ^
0_0_38703311_31329.cpp:26:15: error: invalid types 'int[int]' for array subscript
26 | if(Ver[i].second == 1) {
| ^
0_0_38703311_31329.cpp:27:26: error: 'A' was not declared in this scope
27 | if(tot == 1) A = Ver[i].first;
| ^
0_0_38703311_31329.cpp:27:33: error: invalid types 'int[int]' for array subscript
27 | if(tot == 1) A = Ver[i].first;
| ^
0_0_38703311_31329.cpp:29:15: error: invalid types 'int[int]' for array subscript
29 | if(Ver[i].second == -1) {
| ^
0_0_38703311_31329.cpp:30:28: error: 'A' was not declared in this scope
30 | if(tot == 0 && A != Ver[i].first) c.push_back({A, Ver[i].first - 1});
| ^
0_0_38703311_31329.cpp:30:36: error: invalid types 'int[int]' for array subscript
30 | if(tot == 0 && A != Ver[i].first) c.push_back({A, Ver[i].first - 1});
| ^
0_0_38703311_31329.cpp:30:49: error: request for member 'push_back' in 'c', which is of non-class type 'int'
30 | if(tot == 0 && A != Ver[i].first) c.push_back({A, Ver[i].first - 1});
| ^~~~~~~~~
0_0_38703311_31329.cpp:30:66: error: invalid types 'int[int]' for array subscript
30 | if(tot == 0 && A != Ver[i].first) c.push_back({A, Ver[i].first - 1});
| ^
0_0_38703311_31329.cpp: In function 'void pushup(int)':
0_0_38703311_31329.cpp:36:22: error: could not convert 'v[(p << 1)]' from 'int' to 'std::vector<std::pair<int, int> >'
36 | v[p] = solve(v[ls], v[rs]);
| ~~~~^
| |
| int
0_0_38703311_31329.cpp: In function 'void build(int, int, int)':
0_0_38703311_31329.cpp:40:10: error: request for member 'clear' in 'v[p]', which is of non-class type 'int'
40 | v[p].clear();
| ^~~~~
0_0_38703311_31329.cpp:42:14: error: request for member 'clear' in 'v[p]', which is of non-class type 'int'
42 | v[p].clear();
| ^~~~~
0_0_38703311_31329.cpp:43:28: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
43 | if(a[l] == 1) v[p].push_back({0, b[l]});
| ^~~~~~~~~
0_0_38703311_31329.cpp:45:18: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
45 | v[p].push_back({a[l], b[l]});
| ^~~~~~~~~
0_0_38703311_31329.cpp:46:18: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
46 | v[p].push_back({0, 0});
| ^~~~~~~~~
0_0_38703311_31329.cpp: In function 'void change(int, int, int, int, std::pair<int, int>)':
0_0_38703311_31329.cpp:57:14: error: request for member 'clear' in 'v[p]', which is of non-class type 'int'
57 | v[p].clear();
| ^~~~~
0_0_38703311_31329.cpp:58:31: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
58 | if(V.first == 1) v[p].push_back({0, V.second});
| ^~~~~~~~~
0_0_38703311_31329.cpp:60:18: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
60 | v[p].push_back({V.first, V.second});
| ^~~~~~~~~
0_0_38703311_31329.cpp:61:18: error: request for member 'push_back' in 'v[p]', which is of non-class type 'int'
61 | v[p].push_back({0, 0});
| ^~~~~~~~~
0_0_38703311_31329.cpp: In function 'void query(int, int, int, int, int)':
0_0_38703311_31329.cpp:72:21: error: could not convert 'ans' from 'int' to 'std::vector<std::pair<int, int> >'
72 | ans = solve(ans, v[p]);
| ^~~
| |
| int
0_0_38703311_31329.cpp: In function 'void work()':
0_0_38703311_31329.cpp:93:17: error: request for member 'clear' in 'ans', which is of non-class type 'int'
93 | ans.clear();
| ^~~~~
0_0_38703311_31329.cpp:94:17: error: request for member 'push_back' in 'ans', which is of non-class type 'int'
94 | ans.push_back({0, 0});
| ^~~~~~~~~
0_0_38703311_31329.cpp:97:31: error: 'begin' was not declared in this scope
97 | for(auto [x, y] : ans) sum += y - x + 1;
| ^~~
0_0_38703311_31329.cpp:97:31: note: suggested alternatives:
In file included from .\stdc++.h:166:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1230:5: note: 'std::begin'
1230 | begin(const valarray<_Tp>& _
|