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_33661269_25996.cpp:9:2: error: 'll' does not name a type
  ll sum;
  ^
0_0_33661269_25996.cpp: In function 'void add(int, int, int, int, int&)':
0_0_33661269_25996.cpp:15:11: error: 'struct node' has no member named 'sum'
  tree[rt].sum+=a;
           ^
0_0_33661269_25996.cpp: At global scope:
0_0_33661269_25996.cpp:22:1: error: 'll' does not name a type
 ll query(int l,int r,int rt,int L,int R){
 ^
0_0_33661269_25996.cpp: In function 'int main()':
0_0_33661269_25996.cpp:53:3: error: 'll' was not declared in this scope
   ll last=0;
   ^
0_0_33661269_25996.cpp:56:11: error: 'last' was not declared in this scope
    l=min((last+ll)%n+1,(last+rr)%n+1);
           ^
0_0_33661269_25996.cpp:58:7: error: expected ';' before 'ans'
    ll ans=query(l,n,top[r],1,n);
       ^
0_0_33661269_25996.cpp:59:25: error: 'ans' was not declared in this scope
    printf("%lld\n",last=ans);
                         ^


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-06-26 17:41:56, Gzip enabled