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_25928422_10629.cpp: In function 'void build(int, int, int)':
0_0_25928422_10629.cpp:19:12: error: invalid operands of types 'pp [300005]' and 'int' to binary 'operator<<'
  build(tr<<1|1,mid+1,r);
            ^
0_0_25928422_10629.cpp: In function 'int query(int, int, int, int)':
0_0_25928422_10629.cpp:28:2: error: 'retur' was not declared in this scope
  retur tr[rt].ans-tr[rt<<1].ans+query(rt<<1,l,mid,ma);
  ^
0_0_25928422_10629.cpp: At global scope:
0_0_25928422_10629.cpp:31:1: error: 'viod' does not name a type
 viod update(int rt,int l,int r,int k,int ma){
 ^
0_0_25928422_10629.cpp: In function 'int main()':
0_0_25928422_10629.cpp:58:23: error: 'update' was not declared in this scope
    update(1,1,n,i,a[i]);
                       ^
0_0_25928422_10629.cpp:63:21: error: 'update' was not declared in this scope
    update(1,1,n,k,ma);
                     ^


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-30 10:42:44, Gzip enabled