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_27291164_30181.cpp: In function 'long long int query(int, int, int, long long int, long long int)':
0_0_27291164_30181.cpp:149:19: error: request for member 'l' in 'tree[i]', which is of non-class type 'long long int'
     int l=tree[i].l,r=tree[i].r;
                   ^
0_0_27291164_30181.cpp:150:16: error: 'r' was not declared in this scope
     int mid=(l+r)>>1;
                ^
0_0_27291164_30181.cpp:152:20: error: request for member 'mn' in 'tree[i]', which is of non-class type 'long long int'
         if(tree[i].mn>b || tree[i].mx<a){
                    ^
0_0_27291164_30181.cpp:152:36: error: request for member 'mx' in 'tree[i]', which is of non-class type 'long long int'
         if(tree[i].mn>b || tree[i].mx<a){
                                    ^
0_0_27291164_30181.cpp:155:20: error: request for member 'mn' in 'tree[i]', which is of non-class type 'long long int'
         if(tree[i].mn>=a && tree[i].mx<=b){
                    ^
0_0_27291164_30181.cpp:155:37: error: request for member 'mx' in 'tree[i]', which is of non-class type 'long long int'
         if(tree[i].mn>=a && tree[i].mx<=b){
                                     ^
0_0_27291164_30181.cpp:156:28: error: request for member 'sum' in 'tree[i]', which is of non-class type 'long long int'
             return tree[i].sum;
                            ^
0_0_27291164_30181.cpp:160:22: error: 'lson' was not declared in this scope
         return query(lson,x,y,a,b);
                      ^
0_0_27291164_30181.cpp:162:22: error: 'rson' was not declared in this scope
         return query(rson,x,y,a,b);
                      ^
0_0_27291164_30181.cpp:164:22: error: 'lson' was not declared in this scope
         return query(lson,x,mid,a,b)+query(rson,mid+1,y,a,b);
                      ^
0_0_27291164_30181.cpp:164:44: error: 'rson' was not declared in this scope
         return query(lson,x,mid,a,b)+query(rson,mid+1,y,a,b);
                                            ^


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-12-04 23:16:25, Gzip enabled