| 9 | int n = 1; |
| 10 | vector<node*> root; |
| 11 | int build(vector<T> v) { |
| 12 | while (n < v.size()) n <<= 1; |
| 13 | root.push_back(build(0, n - 1, v)); |
| 14 | return root.size() - 1; |
| 15 | } |
| 16 | node* build(int l, int r, vector<T>& v) { |
| 17 | node* cur = new node(); |
| 18 | if (l == r) { |
no test coverage detected