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_21866261_31357.cpp: In function 'void insert(int, int, int&, int, int)':
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:18:8: note: in expansion of macro 'mid'
     if(mid>=pos)insert(l,mid,ls[x],ls[y],pos);
        ^
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:18:26: note: in expansion of macro 'mid'
     if(mid>=pos)insert(l,mid,ls[x],ls[y],pos);
                          ^
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:19:17: note: in expansion of macro 'mid'
     else insert(mid+1,r,rs[x],rs[y],pos);
                 ^
0_0_21866261_31357.cpp: In function 'll query(int, int, int, int, int, int, int)':
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:24:11: note: in expansion of macro 'mid'
     if(k<=mid) return query(l,mid,ls[u],ls[v],ls[a],ls[b],k);
           ^
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:24:31: note: in expansion of macro 'mid'
     if(k<=mid) return query(l,mid,ls[u],ls[v],ls[a],ls[b],k);
                               ^
0_0_21866261_31357.cpp:7:12: error: expected primary-expression before '=' token
 #define mid=l+r>>1
            ^
0_0_21866261_31357.cpp:25:26: note: in expansion of macro 'mid'
     else return lc+query(mid+1,r,rs[u],rs[v],rs[a],rs[b],k);
                          ^


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-03 14:43:17, Gzip enabled