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_29640166_11501.cpp: In function 'void pb(int, int, int, int)':
0_0_29640166_11501.cpp:25:2: error: 'tag' was not declared in this scope
  tag[x<<1]=tag[x<<1|1]=tag[x];
  ^
0_0_29640166_11501.cpp: In function 'void add(int, int, int, int, int)':
0_0_29640166_11501.cpp:31:5: error: request for member 'v' in 't', which is of non-class type 'int'
   t.v=0;
     ^
0_0_29640166_11501.cpp:32:5: error: request for member 'c_l' in 't', which is of non-class type 'int'
   t.c_l=t.c_r=c;
     ^
0_0_29640166_11501.cpp:32:11: error: request for member 'c_r' in 't', which is of non-class type 'int'
   t.c_l=t.c_r=c;
           ^
0_0_29640166_11501.cpp:36:5: error: 'tag' was not declared in this scope
  if(tag[x]) pb(x,l,r,mid);
     ^
0_0_29640166_11501.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_29640166_11501.cpp:43:5: error: request for member 'v' in 't', which is of non-class type 'Node [400040]'
   t.v=1;
     ^
0_0_29640166_11501.cpp:44:5: error: request for member 'c_l' in 't', which is of non-class type 'Node [400040]'
   t.c_l=t.c_r=c;
     ^
0_0_29640166_11501.cpp:44:11: error: request for member 'c_r' in 't', which is of non-class type 'Node [400040]'
   t.c_l=t.c_r=c;
           ^
0_0_29640166_11501.cpp:45:3: error: 'tag' was not declared in this scope
   tag[x]=c;
   ^
0_0_29640166_11501.cpp:49:5: error: 'tag' was not declared in this scope
  if(tag[x]) pb(x,l,r,mid);
     ^
0_0_29640166_11501.cpp:50:34: error: too few arguments to function 'void update(int, int, int, int, int, int)'
  if(mid>=L) update(x<<1,l,mid,L,R);
                                  ^
0_0_29640166_11501.cpp:41:6: note: declared here
 void update(int x,int l,int r,int L,int R,int c){
      ^
0_0_29640166_11501.cpp:51:37: error: too few arguments to function 'void update(int, int, int, int, int, int)'
  if(mid<R) update(x<<1|1,mid+1,r,L,R);
                                     ^
0_0_29640166_11501.cpp:41:6: note: declared here
 void update(int x,int l,int r,int L,int R,int c){
      ^
0_0_29640166_11501.cpp: In function 'Node query(int, int, int, int, int)':
0_0_29640166_11501.cpp:57:5: error: 'tag' was not declared in this scope
  if(tag[x]) pb(x,l,r,mid);
     ^
0_0_29640166_11501.cpp: In function 'int ask(int, int)':
0_0_29640166_11501.cpp:110:39: error: 'z' was not declared in this scope
   Node k=query(1,1,n,id[top[x]],id[x],z);
                                       ^
0_0_29640166_11501.cpp:115:27: error: 'z' was not declared in this scope
  update(1,1,n,id[x],id[y],z);
                           ^
0_0_29640166_11501.cpp: In function 'int main()':
0_0_29640166_11501.cpp:139:3: error: expected ';' before '}' token
   }
   ^


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-07-03 08:45:18, Gzip enabled