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_19225977_24587.cpp:27:2: error: 'X' does not name a type
  X[4],Y[4];long long
  ^
0_0_19225977_24587.cpp: In function 'void build(int, int, int)':
0_0_19225977_24587.cpp:26:28: error: unable to find numeric literal operator 'operator""long'
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:34:44: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    build(lson);    build(rson);    pushup(rt);}
                                            ^
0_0_19225977_24587.cpp:26:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:34:44: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    build(lson);    build(rson);    pushup(rt);}
                                            ^
0_0_19225977_24587.cpp: In function 'void update(int, int, int, int, int, long long int, int)':
0_0_19225977_24587.cpp:26:28: error: unable to find numeric literal operator 'operator""long'
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:37:76: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    if(l<=mid)update(lson,l,r,v,flag);    if(r>mid)update(rson,l,r,v,flag);    pushup(rt);}
                                                                            ^
0_0_19225977_24587.cpp:26:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:37:76: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    if(l<=mid)update(lson,l,r,v,flag);    if(r>mid)update(rson,l,r,v,flag);    pushup(rt);}
                                                                            ^
0_0_19225977_24587.cpp: In function 'void adjust(int, int, int)':
0_0_19225977_24587.cpp:39:68: error: 'X' was not declared in this scope
 int mid=(L+R)>>1;    for(int i=0;i<4;i++){        if(tr[rt].maX[i]>X[i]||tr[rt].maY[i]>Y[i]){            if(L==R){                tr[rt].maX[i]=LL_INF+1;                tr[rt].maY[i]=LL_INF+1;                tr[rt].sum[i]=0;                continue;            }            pushdown(rt);            adjust(lson);adjust(rson);            pushup(rt);        }    }}LL query(int L,int R,int rt,int l,int r,int f){    if(l<=L&&R<=r)return tr[rt].sum[f];    
                                                                    ^
0_0_19225977_24587.cpp:39:88: error: 'Y' was not declared in this scope
 int mid=(L+R)>>1;    for(int i=0;i<4;i++){        if(tr[rt].maX[i]>X[i]||tr[rt].maY[i]>Y[i]){            if(L==R){                tr[rt].maX[i]=LL_INF+1;                tr[rt].maY[i]=LL_INF+1;                tr[rt].sum[i]=0;                continue;            }            pushdown(rt);            adjust(lson);adjust(rson);            pushup(rt);        }    }}LL query(int L,int R,int rt,int l,int r,int f){    if(l<=L&&R<=r)return tr[rt].sum[f];    
                                                                                        ^
0_0_19225977_24587.cpp:26:28: error: unable to find numeric literal operator 'operator""long'
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:39:320: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    for(int i=0;i<4;i++){        if(tr[rt].maX[i]>X[i]||tr[rt].maY[i]>Y[i]){            if(L==R){                tr[rt].maX[i]=LL_INF+1;                tr[rt].maY[i]=LL_INF+1;                tr[rt].sum[i]=0;                continue;            }            pushdown(rt);            adjust(lson);adjust(rson);            pushup(rt);        }    }}LL query(int L,int R,int rt,int l,int r,int f){    if(l<=L&&R<=r)return tr[rt].sum[f];    
                                                                                                                                                                                                                                                                                                                                ^
0_0_19225977_24587.cpp:26:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:39:320: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    for(int i=0;i<4;i++){        if(tr[rt].maX[i]>X[i]||tr[rt].maY[i]>Y[i]){            if(L==R){                tr[rt].maX[i]=LL_INF+1;                tr[rt].maY[i]=LL_INF+1;                tr[rt].sum[i]=0;                continue;            }            pushdown(rt);            adjust(lson);adjust(rson);            pushup(rt);        }    }}LL query(int L,int R,int rt,int l,int r,int f){    if(l<=L&&R<=r)return tr[rt].sum[f];    
                                                                                                                                                                                                                                                                                                                                ^
0_0_19225977_24587.cpp: In function 'LL query(int, int, int, int, int, int)':
0_0_19225977_24587.cpp:26:28: error: unable to find numeric literal operator 'operator""long'
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:40:92: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    LL ans=0;    if(l<=mid)ans+=query(lson,l,r,f);    if(r>mid)ans+=query(rson,l,r,f);    return ans;}
                                                                                            ^
0_0_19225977_24587.cpp:26:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson mid+1,R,rt<<1|1long long
                            ^
0_0_19225977_24587.cpp:40:92: note: in expansion of macro 'rson'
 int mid=(L+R)>>1;    LL ans=0;    if(l<=mid)ans+=query(lson,l,r,f);    if(r>mid)ans+=query(rson,l,r,f);    return ans;}
                                                                                            ^
0_0_19225977_24587.cpp: In function 'int main()':
0_0_19225977_24587.cpp:43:132: error: 'X' was not declared in this scope
 int xx1,xx2,yy1,yy2;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        scanf("%d%d%d%d",&xx1,&yy1,&xx2,&yy2);        X[0]=xx2;Y[0]=yy2;        X[1]=xx1-1;Y[1]=yy2;        X[2]=xx2;Y[2]=yy1-1;        X[3]=xx1-1;Y[3]=yy1-1;        for(int i=1;i<=n;i++){            scanf("%I64d%I64d",&tx[i],&ty[i]);        }        build(1,n,1);        
                                                                                                                                    ^
0_0_19225977_24587.cpp:43:141: error: 'Y' was not declared in this scope
 int xx1,xx2,yy1,yy2;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        scanf("%d%d%d%d",&xx1,&yy1,&xx2,&yy2);        X[0]=xx2;Y[0]=yy2;        X[1]=xx1-1;Y[1]=yy2;        X[2]=xx2;Y[2]=yy1-1;        X[3]=xx1-1;Y[3]=yy1-1;        for(int i=1;i<=n;i++){            scanf("%I64d%I64d",&tx[i],&ty[i]);        }        build(1,n,1);        
                                                                                                                                             ^


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 13:18:20, Gzip enabled