klasika.cpp:75:35: error: expected identifier before numeric constant
75 | vector <pair <int, int>> tree(2, {-1, -1});
| ^
klasika.cpp:75:35: error: expected ',' or '...' before numeric constant
klasika.cpp: In member function 'void Trie::add(long long int, long long int, long long int)':
klasika.cpp:81:20: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
81 | if(tree[node].r == -1) tree[node].r = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:81:40: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
81 | if(tree[node].r == -1) tree[node].r = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:81:58: error: invalid use of member function 'std::vector<std::pair<long long int, long long int> > Trie::tree(int)' (did you forget the '()' ?)
81 | if(tree[node].r == -1) tree[node].r = cnt++, tree.emplace_back({-1, -1});
| ^~~~
klasika.cpp:81:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
81 | if(tree[node].r == -1) tree[node].r = cnt++, tree.emplace_back({-1, -1});
| ^~
klasika.cpp:81:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
81 | if(tree[node].r == -1) tree[node].r = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:81:84: error: expected primary-expression before ')' token
klasika.cpp:82:28: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
82 | add(x / 2, tree[node].r, bit -1);
| ^
klasika.cpp:86:20: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
86 | if(tree[node].l == -1) tree[node].l = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:86:40: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
86 | if(tree[node].l == -1) tree[node].l = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:86:58: error: invalid use of member function 'std::vector<std::pair<long long int, long long int> > Trie::tree(int)' (did you forget the '()' ?)
86 | if(tree[node].l == -1) tree[node].l = cnt++, tree.emplace_back({-1, -1});
| ^~~~
klasika.cpp:86:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
86 | if(tree[node].l == -1) tree[node].l = cnt++, tree.emplace_back({-1, -1});
| ^~
klasika.cpp:86:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
86 | if(tree[node].l == -1) tree[node].l = cnt++, tree.emplace_back({-1, -1});
| ^
klasika.cpp:86:84: error: expected primary-expression before ')' token
klasika.cpp:87:28: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
87 | add(x / 2, tree[node].l, bit -1);
| ^
klasika.cpp: In member function 'long long int Trie::query(long long int, long long int, long long int)':
klasika.cpp:95:20: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
95 | if(tree[node].l != -1) return (1 << bit) + query(x / 2, tree[node].l, bit -1);
| ^
klasika.cpp:95:73: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
95 | if(tree[node].l != -1) return (1 << bit) + query(x / 2, tree[node].l, bit -1);
| ^
klasika.cpp:96:42: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
96 | else return query(x / 2, tree[node].r, bit -1);
| ^
klasika.cpp:100:20: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
100 | if(tree[node].r != -1) return (1 << bit) + query(x / 2, tree[node].r, bit -1);
| ^
klasika.cpp:100:73: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
100 | if(tree[node].r != -1) return (1 << bit) + query(x / 2, tree[node].r, bit -1);
| ^
klasika.cpp:101:42: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
101 | else return query(x / 2, tree[node].l, bit -1);
| ^
klasika.cpp: In function 'int32_t main()':
klasika.cpp:141:8: error: 'c' was not declared in this scope
141 | if(c == 1) solve2(q, queries);
| ^