0_0_38729735_12631.cpp:121:5: error: 'vector' does not name a type
121 | vector<T> tr;
| ^~~~~~
0_0_38729735_12631.cpp: In constructor 'Fenwick<T>::Fenwick(int)':
0_0_38729735_12631.cpp:123:28: error: class 'Fenwick<T>' does not have any field named 'tr'
123 | Fenwick(int n) : n(n), tr(n + 1, 0){}
| ^~
0_0_38729735_12631.cpp: In member function 'void Fenwick<T>::modify(int, T)':
0_0_38729735_12631.cpp:130:48: error: 'tr' was not declared in this scope; did you mean 'tr2'?
130 | for(int i = x; i <= n; i += lowbit(i)) tr[i] += c;
| ^~
| tr2
0_0_38729735_12631.cpp: In member function 'T Fenwick<T>::query(int)':
0_0_38729735_12631.cpp:140:50: error: 'tr' was not declared in this scope; did you mean 'tr2'?
140 | for(int i = x; i; i -= lowbit(i)) res += tr[i];
| ^~
| tr2
0_0_38729735_12631.cpp: In member function 'int Fenwick<T>::find_first(T)':
0_0_38729735_12631.cpp:151:48: error: 'tr' was not declared in this scope; did you mean 'tr2'?
151 | if ((ans | (1 << i)) <= n && val + tr[ans | (1 << i)] < sum){
| ^~
| tr2
0_0_38729735_12631.cpp: In member function 'int Fenwick<T>::find_last(T)':
0_0_38729735_12631.cpp:162:48: error: 'tr' was not declared in this scope; did you mean 'tr2'?
162 | if ((ans | (1 << i)) <= n && val + tr[ans | (1 << i)] <= sum){
| ^~
| tr2
0_0_38729735_12631.cpp: At global scope:
0_0_38729735_12631.cpp:175:5: error: 'vector' does not name a type
175 | vector<int> p;
| ^~~~~~
0_0_38729735_12631.cpp: In constructor 'DSU::DSU(int)':
0_0_38729735_12631.cpp:176:18: error: class 'DSU' does not have any field named 'p'
176 | DSU(int n) : p(n + 1){
| ^
0_0_38729735_12631.cpp:177:16: error: request for member 'begin' in 'p', which is of non-class type 'int [50005]'
177 | iota(p.begin(), p.end(), 0);
| ^~~~~
0_0_38729735_12631.cpp:177:27: error: request for member 'end' in 'p', which is of non-class type 'int [50005]'
177 | iota(p.begin(), p.end(), 0);
| ^~~
0_0_38729735_12631.cpp: In function 'int main()':
0_0_38729735_12631.cpp:222:9: error: 'vector' was not declared in this scope
222 | vector<bool> v(q + 1);
| ^~~~~~
0_0_38729735_12631.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
6 | #include<cassert>
+++ |+#include <vector>
7 | using namespace std;
0_0_38729735_12631.cpp:222:16: error: expected primary-expression before 'bool'
222 | vector<bool> v(q + 1);
| ^~~~
0_0_38729735_12631.cpp:223:31: error: expected primary-expression before '>' token
223 | vector<pair<int, int> > edges(q + 1);
| ^
0_0_38729735_12631.cpp:223:33: error: 'edges' was not declared in this scope
223 | vector<pair<int, int> > edges(q + 1);
| ^~~~~
0_0_38729735_12631.cpp:231:17: error: 'v' was not declared in this scope
231 | v[c] = true;
| ^
0_0_38729735_12631.cpp:277:51: error: 'v' was not declared in this scope
277 | if (bit1.query(1, q) != n - 1 || !v[w]){
| ^
|