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_17202654_4536.cpp: In function 'void dfs2(int, int)':
0_0_17202654_4536.cpp:40:5: error: reference to 'rank' is ambiguous
     rank[tid[u]]=u;
     ^
0_0_17202654_4536.cpp:12:52: note: candidates are: int rank [201000]
 int siz[NN],son[NN],top[NN],fa[NN],dep[NN],tid[NN],rank[NN];
                                                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202654_4536.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_17202654_4536.cpp: In function 'int main()':
0_0_17202654_4536.cpp:323:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17202654_4536.cpp:178:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17202654_4536.cpp: At global scope:
0_0_17202654_4536.cpp:366:17: error: redefinition of 'int n'
 int val[NN],cas,n;
                 ^
0_0_17202654_4536.cpp:225:5: note: 'int n' previously declared here
 int n,k;
     ^
0_0_17202654_4536.cpp:371:8: error: conflicting declaration 'tree t [404000]'
 }t[NN*4];
        ^
0_0_17202654_4536.cpp:55:2: note: previous declaration as 'segtree t [804000]'
 }t[NN*4];
  ^
0_0_17202654_4536.cpp: In function 'void lazy(int)':
0_0_17202654_4536.cpp:373:6: error: redefinition of 'void lazy(int)'
 void lazy(int p){
      ^
0_0_17202654_4536.cpp:63:6: note: 'void lazy(int)' previously defined here
 void lazy(int p){
      ^
0_0_17202654_4536.cpp:374:14: error: 'struct segtree' has no member named 'res'
     if (t[p].res==0) return;
              ^
0_0_17202654_4536.cpp:375:19: error: 'struct segtree' has no member named 'res'
     else if (t[p].res==1){
                   ^
0_0_17202654_4536.cpp:376:14: error: 'struct segtree' has no member named 'res'
         t[p].res=0;
              ^
0_0_17202654_4536.cpp:377:14: error: 'struct segtree' has no member named 'ma'
         t[p].ma=t[p].val;
              ^
0_0_17202654_4536.cpp:377:22: error: 'struct segtree' has no member named 'val'
         t[p].ma=t[p].val;
                      ^
0_0_17202654_4536.cpp:379:15: error: 'struct segtree' has no member named 'res'
         t[ls].res=1;t[ls].ma=t[ls].val=t[p].val;
               ^
0_0_17202654_4536.cpp:379:27: error: 'struct segtree' has no member named 'ma'
         t[ls].res=1;t[ls].ma=t[ls].val=t[p].val;
                           ^
0_0_17202654_4536.cpp:379:36: error: 'struct segtree' has no member named 'val'
         t[ls].res=1;t[ls].ma=t[ls].val=t[p].val;
                                    ^
0_0_17202654_4536.cpp:379:45: error: 'struct segtree' has no member named 'val'
         t[ls].res=1;t[ls].ma=t[ls].val=t[p].val;
                                             ^
0_0_17202654_4536.cpp:380:15: error: 'struct segtree' has no member named 'res'
         t[rs].res=1;t[rs].ma=t[rs].val=t[p].val;
               ^
0_0_17202654_4536.cpp:380:27: error: 'struct segtree' has no member named 'ma'
         t[rs].res=1;t[rs].ma=t[rs].val=t[p].val;
                           ^
0_0_17202654_4536.cpp:380:36: error: 'struct segtree' has no member named 'val'
         t[rs].res=1;t[rs].ma=t[rs].val=t[p].val;
                                    ^
0_0_17202654_4536.cpp:380:45: error: 'struct segtree' has no member named 'val'
         t[rs].res=1;t[rs].ma=t[rs].val=t[p].val;
                                             ^
0_0_17202654_4536.cpp: In function 'void build(int, int, int)':
0_0_17202654_4536.cpp:385:6: error: redefinition of 'void build(int, int, int)'
 void build(int l,int r,int p){
      ^
0_0_17202654_4536.cpp:78:6: note: 'void build(int, int, int)' previously defined here
 void build(int l,int r,int p){
      ^
0_0_17202654_4536.cpp:387:10: error: 'struct segtree' has no member named 'res'
     t[p].res=0;
          ^
0_0_17202654_4536.cpp:388:21: error: 'struct segtree' has no member named 'ma'
     if (l==r) {t[p].ma=t[p].val=val[l];return;}
                     ^
0_0_17202654_4536.cpp:388:29: error: 'struct segtree' has no member named 'val'
     if (l==r) {t[p].ma=t[p].val=val[l];return;}
                             ^
0_0_17202654_4536.cpp:392:10: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
          ^
0_0_17202654_4536.cpp:392:23: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                       ^
0_0_17202654_4536.cpp:392:32: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                                ^
0_0_17202654_4536.cpp: In function 'void update(int, int, int, int)':
0_0_17202654_4536.cpp:397:14: error: 'struct segtree' has no member named 'res'
         t[p].res=1;
              ^
0_0_17202654_4536.cpp:398:14: error: 'struct segtree' has no member named 'val'
         t[p].val=t[p].ma=val;
              ^
0_0_17202654_4536.cpp:398:23: error: 'struct segtree' has no member named 'ma'
         t[p].val=t[p].ma=val;
                       ^
0_0_17202654_4536.cpp:409:10: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
          ^
0_0_17202654_4536.cpp:409:23: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                       ^
0_0_17202654_4536.cpp:409:32: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                                ^
0_0_17202654_4536.cpp: In function 'void fk(int, int, int, int)':
0_0_17202654_4536.cpp:414:14: error: 'struct segtree' has no member named 'res'
         t[p].res=0;
              ^
0_0_17202654_4536.cpp:415:18: error: 'struct segtree' has no member named 'val'
         if (t[p].val>val) t[p].val=__gcd(val,t[p].val);
                  ^
0_0_17202654_4536.cpp:415:32: error: 'struct segtree' has no member named 'val'
         if (t[p].val>val) t[p].val=__gcd(val,t[p].val);
                                ^
0_0_17202654_4536.cpp:415:51: error: 'struct segtree' has no member named 'val'
         if (t[p].val>val) t[p].val=__gcd(val,t[p].val);
                                                   ^
0_0_17202654_4536.cpp:418:36: error: 'struct segtree' has no member named 'res'
     if (t[p].l==l&&t[p].r==r&&t[p].res==1) {
                                    ^
0_0_17202654_4536.cpp:419:18: error: 'struct segtree' has no member named 'val'
         if (t[p].val>=val) {
                  ^
0_0_17202654_4536.cpp:420:18: error: 'struct segtree' has no member named 'val'
             t[p].val=__gcd(val,t[p].val);
                  ^
0_0_17202654_4536.cpp:420:37: error: 'struct segtree' has no member named 'val'
             t[p].val=__gcd(val,t[p].val);
                                     ^
0_0_17202654_4536.cpp:427:18: error: 'struct segtree' has no member named 'ma'
         if (t[p].ma<=val) ;
                  ^
0_0_17202654_4536.cpp:431:18: error: 'struct segtree' has no member named 'ma'
             t[p].ma=max(t[ls].ma,t[rs].ma);
                  ^
0_0_17202654_4536.cpp:431:31: error: 'struct segtree' has no member named 'ma'
             t[p].ma=max(t[ls].ma,t[rs].ma);
                               ^
0_0_17202654_4536.cpp:431:40: error: 'struct segtree' has no member named 'ma'
             t[p].ma=max(t[ls].ma,t[rs].ma);
                                        ^
0_0_17202654_4536.cpp:443:10: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
          ^
0_0_17202654_4536.cpp:443:23: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                       ^
0_0_17202654_4536.cpp:443:32: error: 'struct segtree' has no member named 'ma'
     t[p].ma=max(t[ls].ma,t[rs].ma);
                                ^
0_0_17202654_4536.cpp: In function 'int query(int, int)':
0_0_17202654_4536.cpp:449:21: error: 'struct segtree' has no member named 'val'
         return t[p].val;
                     ^
0_0_17202654_4536.cpp: In function 'int main()':
0_0_17202654_4536.cpp:460:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17202654_4536.cpp:178:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17202654_4536.cpp: At global scope:
0_0_17202654_4536.cpp:498:5: error: redefinition of 'int n'
 int n,k,l;
     ^
0_0_17202654_4536.cpp:225:5: note: 'int n' previously declared here
 int n,k;
     ^
0_0_17202654_4536.cpp:498:7: error: redefinition of 'int k'
 int n,k,l;
       ^
0_0_17202654_4536.cpp:225:7: note: 'int k' previously declared here
 int n,k;
       ^
0_0_17202654_4536.cpp:499:5: error: redefinition of 'int cas'
 int cas,tn,kl,tmpk,now,pas,i,j,o;
     ^
0_0_17202654_4536.cpp:366:13: note: 'int cas' previously declared here
 int val[NN],cas,n;
             ^
0_0_17202654_4536.cpp: In function 'int main()':
0_0_17202654_4536.cpp:506:5


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-11-15 09:44:16, Gzip enabled