F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-01 11:03:09, Gzip enabled