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_35676377_2759.cpp:10:30: error: invalid constructor; you probably meant 'Node (const Node&)'
  Node(Node _det=0, Node _rt=0):det(_det),rt(_rt){};
                              ^
0_0_35676377_2759.cpp: In member function 'int Node::count()':
0_0_35676377_2759.cpp:13:3: error: '_cnt' was not declared in this scope
   _cnt = 0;
   ^
0_0_35676377_2759.cpp:14:10: error: 'nn' was not declared in this scope
   df(rt,-nn,nn);
          ^
0_0_35676377_2759.cpp: In member function 'void Node::insert(int, int)':
0_0_35676377_2759.cpp:23:11: error: 'nn' was not declared in this scope
   ins(rt,-nn,nn,x+det,v);
           ^
0_0_35676377_2759.cpp: In member function 'void Node::add(int, int, int)':
0_0_35676377_2759.cpp:27:10: error: 'T' was not declared in this scope
   add(rt,T[p].rt,l+det, r+det, l,r);
          ^
0_0_35676377_2759.cpp: In member function 'void Node::merge(int, int, int, int, int)':
0_0_35676377_2759.cpp:31:13: error: 'T' was not declared in this scope
   merge(rt, T[p].rt, l+det, r+det, x+det, y+det);
             ^
0_0_35676377_2759.cpp: In function 'void df(int, int, int)':
0_0_35676377_2759.cpp:38:4: error: '_cnt' was not declared in this scope
  ++_cnt;
    ^
0_0_35676377_2759.cpp:40:5: error: 'ls' was not declared in this scope
  df(ls[p],l,mi);
     ^
0_0_35676377_2759.cpp:41:5: error: 'rs' was not declared in this scope
  df(rs[p],mi+1,r);
     ^
0_0_35676377_2759.cpp: In function 'void ins(int&, int, int, int, int)':
0_0_35676377_2759.cpp:46:15: error: 'cnt' was not declared in this scope
  if(!p) p = ++cnt;
               ^
0_0_35676377_2759.cpp:48:3: error: 'h' was not declared in this scope
   h[p] += v;
   ^
0_0_35676377_2759.cpp:52:15: error: 'ls' was not declared in this scope
  if(x<=mi)ins(ls[p],l,mi,x,v); else ins(rs[p],mi+1,r,x,v);
               ^
0_0_35676377_2759.cpp:52:41: error: 'rs' was not declared in this scope
  if(x<=mi)ins(ls[p],l,mi,x,v); else ins(rs[p],mi+1,r,x,v);
                                         ^
0_0_35676377_2759.cpp: In function 'void merge(int&, int)':
0_0_35676377_2759.cpp:61:2: error: 'h' was not declared in this scope
  h[p]=max(h[p],h[q]);
  ^
0_0_35676377_2759.cpp:62:8: error: 'ls' was not declared in this scope
  merge(ls[p],ls[q]);
        ^
0_0_35676377_2759.cpp:63:8: error: 'rs' was not declared in this scope
  merge(rs[p],rs[q]);
        ^
0_0_35676377_2759.cpp: In function 'void add(int, int&, int, int, int, int)':
0_0_35676377_2759.cpp:71:8: error: 'ls' was not declared in this scope
  merge(ls[p],ls[q]);
        ^
0_0_35676377_2759.cpp:72:8: error: 'rs' was not declared in this scope
  merge(rs[p],rs[q]);
        ^
0_0_35676377_2759.cpp:73:2: error: 'su' was not declared in this scope
  su[p] = su[ls[p]] + su[rs[p]];
  ^
0_0_35676377_2759.cpp: In function 'void dfs(int, int)':
0_0_35676377_2759.cpp:78:12: error: 'a' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
            ^
0_0_35676377_2759.cpp:78:23: error: 'c' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
                       ^
0_0_35676377_2759.cpp:84:12: error: 'a' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
            ^
0_0_35676377_2759.cpp:84:23: error: 'c' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
                       ^
0_0_35676377_2759.cpp:87:9: error: 'T' was not declared in this scope
   int g=T[u].count();
         ^
0_0_35676377_2759.cpp:96:2: error: 'T' was not declared in this scope
  T[p] = T[g];
  ^
0_0_35676377_2759.cpp:96:11: error: 'g' was not declared in this scope
  T[p] = T[g];
           ^
0_0_35676377_2759.cpp:98:12: error: 'a' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
            ^
0_0_35676377_2759.cpp:98:23: error: 'c' was not declared in this scope
  for(int o=a[p]; o; o=c[o][1]){
                       ^
0_0_35676377_2759.cpp:101:16: error: 'h' was not declared in this scope
   T[p].add(u,0,h);
                ^
0_0_35676377_2759.cpp:107:14: error: 'nn' was not declared in this scope
  T[p].merge(-nn,-1,g,-nn+1,0);
              ^
0_0_35676377_2759.cpp:111:13: error: 'G' was not declared in this scope
  for(auto u:G[p]){
             ^
0_0_35676377_2759.cpp: In function 'int main()':
0_0_35676377_2759.cpp:120:9: error: '_' was not declared in this scope
  cin >> _;
         ^
0_0_35676377_2759.cpp:122:10: error: 'n' was not declared in this scope
   cin >> n >> m; cl(); nn=n-1; nn*=2;
          ^
0_0_35676377_2759.cpp:122:15: error: 'm' was not declared in this scope
   cin >> n >> m; cl(); nn=n-1; nn*=2;
               ^
0_0_35676377_2759.cpp:122:21: error: 'cl' was not declared in this scope
   cin >> n >> m; cl(); nn=n-1; nn*=2;
                     ^
0_0_35676377_2759.cpp:122:24: error: 'nn' was not declared in this scope
   cin >> n >> m; cl(); nn=n-1; nn*=2;
                        ^
0_0_35676377_2759.cpp:124:11: error: 'u' was not declared in this scope
    cin >> u >> v;
           ^
0_0_35676377_2759.cpp:124:16: error: 'v' was not declared in this scope
    cin >> u >> v;
                ^
0_0_35676377_2759.cpp:125:4: error: 'c' was not declared in this scope
    c[++tot][0]=v; c[tot][1]=a[u]; a[u]=tot;
    ^
0_0_35676377_2759.cpp:125:8: error: 'tot' was not declared in this scope
    c[++tot][0]=v; c[tot][1]=a[u]; a[u]=tot;
        ^
0_0_35676377_2759.cpp:125:29: error: 'a' was not declared in this scope
    c[++tot][0]=v; c[tot][1]=a[u]; a[u]=tot;
                             ^
0_0_35676377_2759.cpp:130:11: error: 'x' was not declared in this scope
    cin >> x >> r >> v; r=min(r,n-1);
           ^
0_0_35676377_2759.cpp:130:16: error: 'r' was not declared in this scope
    cin >> x >> r >> v; r=min(r,n-1);
                ^
0_0_35676377_2759.cpp:130:21: error: 'v' was not declared in this scope
    cin >> x >> r >> v; r=min(r,n-1);
                     ^
0_0_35676377_2759.cpp:131:4: error: 'G' was not declared in this scope
    G[x].push_back((Q){r,v});
    ^
0_0_35676377_2759.cpp:131:20: error: 'Q' was not declared in this scope
    G[x].push_back((Q){r,v});
                    ^
0_0_35676377_2759.cpp:136:9: error: 'h' was not declared in this scope
   cout<<h[T[1].rt]<<'\n';
         ^
0_0_35676377_2759.cpp:136:11: error: 'T' was not declared in this scope
   cout<<h[T[1].rt]<<'\n';
           ^


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-25 18:33:49, Gzip enabled