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_36456661_27152.cpp:11:23: error: expected identifier before ',' token
 void add1(int l,int r,,int x,int rt)
                       ^
0_0_36456661_27152.cpp: In function 'void add1(int, int, int, int, int)':
0_0_36456661_27152.cpp:18:28: error: 'p' was not declared in this scope
  if(x <= mid) add1(l,mid,x,p<<1);
                            ^
0_0_36456661_27152.cpp:19:23: error: 'p' was not declared in this scope
  else add1(mid+1,r,x,(p<<1)+1);
                       ^
0_0_36456661_27152.cpp:20:6: error: 'p' was not declared in this scope
  tre[p] = tre[p<<1]+tre[(p<<1)+1];
      ^
0_0_36456661_27152.cpp: In function 'int main()':
0_0_36456661_27152.cpp:42:21: error: too few arguments to function 'void add1(int, int, int, int, int)'
    add1(1,a[i]+1,1,n);
                     ^
0_0_36456661_27152.cpp:11:6: note: declared here
 void add1(int l,int r,,int x,int rt)
      ^


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-23 05:57:53, Gzip enabled