0_0_39764614_7223.cpp:27:5: error: 'vector' does not name a type
27 | vector<int> a;
| ^~~~~~
0_0_39764614_7223.cpp: In function 'void pushup(int)':
0_0_39764614_7223.cpp:32:23: error: 'struct node' has no member named 'a'
32 | int ls_size=t[ls].a.size(),rs_size=t[rs].a.size();
| ^
0_0_39764614_7223.cpp:34:10: error: 'struct node' has no member named 'a'
34 | t[p].a.clear();
| ^
0_0_39764614_7223.cpp:35:26: error: 'rs_size' was not declared in this scope; did you mean 'ls_size'?
35 | while(i<ls_size && j<rs_size && t[p].a.size()<10){
| ^~~~~~~
| ls_size
0_0_39764614_7223.cpp:35:42: error: 'struct node' has no member named 'a'
35 | while(i<ls_size && j<rs_size && t[p].a.size()<10){
| ^
0_0_39764614_7223.cpp:36:18: error: 'struct node' has no member named 'a'
36 | if(t[ls].a[i]>=t[rs].a[j]) t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:36:30: error: 'struct node' has no member named 'a'
36 | if(t[ls].a[i]>=t[rs].a[j]) t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:36:41: error: 'struct node' has no member named 'a'
36 | if(t[ls].a[i]>=t[rs].a[j]) t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:36:59: error: 'struct node' has no member named 'a'
36 | if(t[ls].a[i]>=t[rs].a[j]) t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:37:19: error: 'struct node' has no member named 'a'
37 | else t[p].a.push_back(t[rs].a[j]),++j;
| ^
0_0_39764614_7223.cpp:37:37: error: 'struct node' has no member named 'a'
37 | else t[p].a.push_back(t[rs].a[j]),++j;
| ^
0_0_39764614_7223.cpp:39:29: error: 'struct node' has no member named 'a'
39 | while(i<ls_size && t[p].a.size()<10){
| ^
0_0_39764614_7223.cpp:40:14: error: 'struct node' has no member named 'a'
40 | t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:40:32: error: 'struct node' has no member named 'a'
40 | t[p].a.push_back(t[ls].a[i]),++i;
| ^
0_0_39764614_7223.cpp:42:13: error: 'rs_size' was not declared in this scope; did you mean 'ls_size'?
42 | while(j<rs_size && t[p].a.size()<10){
| ^~~~~~~
| ls_size
0_0_39764614_7223.cpp:42:29: error: 'struct node' has no member named 'a'
42 | while(j<rs_size && t[p].a.size()<10){
| ^
0_0_39764614_7223.cpp:43:14: error: 'struct node' has no member named 'a'
43 | t[p].a.push_back(t[rs].a[j]),++j;
| ^
0_0_39764614_7223.cpp:43:32: error: 'struct node' has no member named 'a'
43 | t[p].a.push_back(t[rs].a[j]),++j;
| ^
0_0_39764614_7223.cpp: In function 'void build(int, int, int)':
0_0_39764614_7223.cpp:52:14: error: 'struct node' has no member named 'a'
52 | t[p].a.push_back(a[l]);
| ^
0_0_39764614_7223.cpp: In function 'void add(int, int, int, int)':
0_0_39764614_7223.cpp:64:26: error: 'struct node' has no member named 'a'
64 | for(auto &i:t[p].a) i+=x;
| ^
0_0_39764614_7223.cpp: In function 'void pushdown(int)':
0_0_39764614_7223.cpp:79:21: error: 'struct node' has no member named 'a'
79 | for(int &i:t[p].a) i+=t[p].sum;
| ^
0_0_39764614_7223.cpp: At global scope:
0_0_39764614_7223.cpp:85:1: error: 'vector' does not name a type
85 | vector<int> get_max(int p,int l,int r,int k){
| ^~~~~~
0_0_39764614_7223.cpp: In function 'bool check(int, int, int, long long int)':
0_0_39764614_7223.cpp:115:5: error: 'vector' was not declared in this scope
115 | vector<int> max_a=get_max(1,l,r,k);
| ^~~~~~
0_0_39764614_7223.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include<iostream>
+++ |+#include <vector>
2 | #define ll long long
0_0_39764614_7223.cpp:115:12: error: expected primary-expression before 'int'
115 | vector<int> max_a=get_max(1,l,r,k);
| ^~~
0_0_39764614_7223.cpp:117:16: error: 'max_a' was not declared in this scope
117 | for(auto i:max_a) sum+=i;
| ^~~~~
|