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_37124666_531.cpp:27:35: error: expected ',' or '...' before '+' token
 void chanpoint(int n,int val,int l+1,int r,int pos){
                                   ^
0_0_37124666_531.cpp: In function 'void chanpoint(int, int, int)':
0_0_37124666_531.cpp:28:11: error: 'r' was not declared in this scope
     if(l==r){a[pos]=b[pos]=val;return;}
           ^
0_0_37124666_531.cpp:28:16: error: 'pos' was not declared in this scope
     if(l==r){a[pos]=b[pos]=val;return;}
                ^
0_0_37124666_531.cpp:29:16: error: 'r' was not declared in this scope
     int mid=(l+r)>>1;
                ^
0_0_37124666_531.cpp:30:38: error: 'pos' was not declared in this scope
     if(n<=mid) chanpoint(n,val,l,mid,pos<<1);
                                      ^
0_0_37124666_531.cpp:31:34: error: 'pos' was not declared in this scope
     else chanpoint(n,val,mid+1,r,pos<<1|1);
                                  ^
0_0_37124666_531.cpp:32:16: error: 'pos' was not declared in this scope
     pushup(l,r,pos);
                ^
0_0_37124666_531.cpp: In function 'int main()':
0_0_37124666_531.cpp:59:60: error: too many arguments to function 'void chanpoint(int, int, int)'
                 scanf("%d%d",&x,&y),++x,chanpoint(x,y,1,n,1);
                                                            ^
0_0_37124666_531.cpp:27:6: note: declared here
 void chanpoint(int n,int val,int l+1,int r,int pos){
      ^


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 10:31:17, Gzip enabled