0_0_38803265_19998.cpp: In function 'void build(ll, ll, ll)':
0_0_38803265_19998.cpp:152:9: error: reference to 'tree' is ambiguous
152 | tree[id]=node(l,r);
| ^~~~
In file included from 0_0_38803265_19998.cpp:108:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:155:17: error: reference to 'tree' is ambiguous
155 | tree[id].sum=a[l];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:158:13: error: reference to 'tree' is ambiguous
158 | mid=tree[id].mid;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:161:9: error: reference to 'tree' is ambiguous
161 | tree[id].sum=max(tree[id<<1].sum,tree[id<<1|1].sum);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:161:26: error: reference to 'tree' is ambiguous
161 | tree[id].sum=max(tree[id<<1].sum,tree[id<<1|1].sum);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:161:42: error: reference to 'tree' is ambiguous
161 | tree[id].sum=max(tree[id<<1].sum,tree[id<<1|1].sum);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp: In function 'void pushdown(ll)':
0_0_38803265_19998.cpp:165:9: error: reference to 'tree' is ambiguous
165 | tree[id<<1].tag+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:165:26: error: reference to 'tree' is ambiguous
165 | tree[id<<1].tag+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:166:9: error: reference to 'tree' is ambiguous
166 | tree[id<<1|1].tag+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:166:28: error: reference to 'tree' is ambiguous
166 | tree[id<<1|1].tag+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:167:9: error: reference to 'tree' is ambiguous
167 | tree[id<<1].sum+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:167:26: error: reference to 'tree' is ambiguous
167 | tree[id<<1].sum+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:168:9: error: reference to 'tree' is ambiguous
168 | tree[id<<1|1].sum+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:168:28: error: reference to 'tree' is ambiguous
168 | tree[id<<1|1].sum+=tree[id].tag;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp:169:9: error: reference to 'tree' is ambiguous
169 | tree[id].tag=0;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:635:9: note: candidates are: 'template<class Key, class Mapped, class Cmp_Fn, class Tag, template<class Node_CItr, class Node_Itr, class Cmp_Fn_, class _Alloc_> class Node_Update, class _Alloc> class __gnu_pbds::tree'
635 | class tree : public PB_DS_TREE_BASE
| ^~~~
0_0_38803265_19998.cpp:147:2: note: 'node tree [400040]'
147 | }tree[4*MAX];
| ^~~~
0_0_38803265_19998.cpp: In function 'void update(ll, ll, ll, ll)':
0_0_3880326
|