met.cpp:43:19: error: 'MX' was not declared in this scope
43 | int n , m , k , o[MX] , ans[MX] ;
| ^~
met.cpp:43:29: error: 'MX' was not declared in this scope
43 | int n , m , k , o[MX] , ans[MX] ;
| ^~
met.cpp:45:13: error: 'MX' was not declared in this scope
45 | long long p[MX] ;
| ^~
met.cpp:47:19: error: 'MX' was not declared in this scope
47 | vector<int> owner[MX] ;
| ^~
met.cpp:49:8: error: 'query' was not declared in this scope
49 | vector<query> q ;
| ^~~~~
met.cpp:49:13: error: template argument 1 is invalid
49 | vector<query> q ;
| ^
met.cpp:49:13: error: template argument 2 is invalid
met.cpp: In function 'void palbs(int, int, std::vector<int>&)':
met.cpp:58:19: error: invalid types 'int[int]' for array subscript
58 | B.update(q[i].l,q[i].r,q[i].val) ;
| ^
met.cpp:58:26: error: invalid types 'int[int]' for array subscript
58 | B.update(q[i].l,q[i].r,q[i].val) ;
| ^
met.cpp:58:33: error: invalid types 'int[int]' for array subscript
58 | B.update(q[i].l,q[i].r,q[i].val) ;
| ^
met.cpp:64:24: error: 'owner' was not declared in this scope
64 | for(int land : owner[c])
| ^~~~~
met.cpp:68:17: error: 'p' was not declared in this scope
68 | if(sum>=p[c]) ans[c] = mid , ok.push_back(c) ;
| ^
met.cpp:68:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
68 | if(sum>=p[c]) ans[c] = mid , ok.push_back(c) ;
| ^~~
| abs
met.cpp:77:19: error: invalid types 'int[int]' for array subscript
77 | B.update(q[i].l,q[i].r,-q[i].val) ;
| ^
met.cpp:77:26: error: invalid types 'int[int]' for array subscript
77 | B.update(q[i].l,q[i].r,-q[i].val) ;
| ^
met.cpp:77:34: error: invalid types 'int[int]' for array subscript
77 | B.update(q[i].l,q[i].r,-q[i].val) ;
| ^
met.cpp: In function 'int main()':
met.cpp:92:21: error: 'o' was not declared in this scope
92 | scanf("%d",&o[i]) ;
| ^
met.cpp:93:9: error: 'owner' was not declared in this scope
93 | owner[o[i]].push_back(i) ;
| ^~~~~
met.cpp:97:23: error: 'p' was not declared in this scope
97 | scanf("%lld",&p[i]) ;
| ^
met.cpp:98:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
98 | ans[i] = -1 ;
| ^~~
| abs
met.cpp:107:11: error: request for member 'push_back' in 'q', which is of non-class type 'int'
107 | q.push_back({l,r,a}) ;
| ^~~~~~~~~
met.cpp:112:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
112 | if(ans[i]>=0) printf("%d\n",ans[i]+1) ;
| ^~~
| abs
met.cpp:88:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
88 | scanf("%d%d",&n,&m) ;
| ~~~~~^~~~~~~~~~~~~~
met.cpp:101:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
101 | scanf("%d",&k) ;
| ~~~~~^~~~~~~~~
met.cpp:106:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
106 | scanf("%d%d%lld",&l,&r,&a) ;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~