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_23208363_16575.cpp:2:9: error: macro names must be identifiers
 #define ???????????§á??????????#define canshu int l,int r,int rt....
         ^
0_0_23208363_16575.cpp:10:1: error: stray '\264' in program
 ???????´®?????????
 ^
0_0_23208363_16575.cpp:10:1: error: stray '\256' in program
0_0_23208363_16575.cpp:10:1: error: expected unqualified-id before '?' token
0_0_23208363_16575.cpp: In function 'void tclear(int, int)':
0_0_23208363_16575.cpp:36:5: error: 'sum' was not declared in this scope
     sum[rt]=lv[rt]=rv[rt]=s; 
     ^
0_0_23208363_16575.cpp:36:13: error: 'lv' was not declared in this scope
     sum[rt]=lv[rt]=rv[rt]=s; 
             ^
0_0_23208363_16575.cpp:36:20: error: 'rv' was not declared in this scope
     sum[rt]=lv[rt]=rv[rt]=s; 
                    ^
0_0_23208363_16575.cpp: In function 'void build(int, int, int)':
0_0_23208363_16575.cpp:42:5: error: 'tr' was not declared in this scope
     tr[rt]=0; 
     ^
0_0_23208363_16575.cpp: In function 'void pushup(int)':
0_0_23208363_16575.cpp:68:5: error: 'tr' was not declared in this scope
     tr[rt]=tr[ls]==tr[rs]?tr[ls]:-1; 
     ^
0_0_23208363_16575.cpp:70:5: error: 'lv' was not declared in this scope
     lv[rt]=lv[ls]+(tr[ls]==0?lv[rs]:0); 
     ^
0_0_23208363_16575.cpp:72:5: error: 'rv' was not declared in this scope
     rv[rt]=rv[rs]+(tr[rs]==0?rv[ls]:0); 
     ^
0_0_23208363_16575.cpp:74:5: error: 'sum' was not declared in this scope
     sum[rt]=max(sum[ls],sum[rs],rv[ls]+lv[rs]); 
     ^
0_0_23208363_16575.cpp: In function 'void pushdown(int, int, int)':
0_0_23208363_16575.cpp:80:8: error: 'tr' was not declared in this scope
     if(tr[rt]!=-1){ 
        ^
0_0_23208363_16575.cpp: In function 'void update(int, int, int)':
0_0_23208363_16575.cpp:100:9: error: 'tr' was not declared in this scope
         tr[rt]=c; 
         ^
0_0_23208363_16575.cpp: In function 'int que(int, int, int)':
0_0_23208363_16575.cpp:128:8: error: 'tr' was not declared in this scope
     if(tr[rt]==0){ 
        ^
0_0_23208363_16575.cpp:130:12: error: 'sum' was not declared in this scope
         if(sum[rt]>=c)return l; 
            ^
0_0_23208363_16575.cpp:136:8: error: 'tr' was not declared in this scope
     if(tr[rt]==1)return -1; 
        ^
0_0_23208363_16575.cpp:142:8: error: 'sum' was not declared in this scope
     if(sum[ls]>=c)return que(lson); 
        ^
0_0_23208363_16575.cpp:144:13: error: 'rv' was not declared in this scope
     else if(rv[ls]+lv[rs]>=c) 
             ^
0_0_23208363_16575.cpp:144:20: error: 'lv' was not declared in this scope
     else if(rv[ls]+lv[rs]>=c) 
                    ^
0_0_23208363_16575.cpp: In function 'void tclear(int, int)':
0_0_23208363_16575.cpp:219:7: error: redefinition of 'void tclear(int, int)'
 void  tclear(int rt,int s){
       ^
0_0_23208363_16575.cpp:34:7: note: 'void tclear(int, int)' previously defined here
 void  tclear(int rt,int s){ 
       ^
0_0_23208363_16575.cpp: In function 'void build(int, int, int)':
0_0_23208363_16575.cpp:225:7: error: redefinition of 'void build(int, int, int)'
 void  build(canshu){
       ^
0_0_23208363_16575.cpp:40:7: note: 'void build(int, int, int)' previously defined here
 void  build(canshu){ 
       ^
0_0_23208363_16575.cpp: In function 'int max(int, int, int)':
0_0_23208363_16575.cpp:241:5: error: redefinition of 'int max(int, int, int)'
 int max(int a,int b,int c){
     ^
0_0_23208363_16575.cpp:56:5: note: 'int max(int, int, int)' previously defined here
 int max(int a,int b,int c){ 
     ^
0_0_23208363_16575.cpp: In function 'void pushup(int)':
0_0_23208363_16575.cpp:251:7: error: redefinition of 'void pushup(int)'
 void  pushup(int rt){
       ^
0_0_23208363_16575.cpp:66:7: note: 'void pushup(int)' previously defined here
 void  pushup(int rt){ 
       ^
0_0_23208363_16575.cpp: In function 'void pushdown(int, int, int)':
0_0_23208363_16575.cpp:263:7: error: redefinition of 'void pushdown(int, int, int)'
 void  pushdown(canshu){
       ^
0_0_23208363_16575.cpp:78:7: note: 'void pushdown(int, int, int)' previously defined here
 void  pushdown(canshu){ 
       ^
0_0_23208363_16575.cpp: At global scope:
0_0_23208363_16575.cpp:279:5: error: redefinition of 'int ll'
 int ll,rr,c;
     ^
0_0_23208363_16575.cpp:94:5: note: 'int ll' previously declared here
 int ll,rr,c; 
     ^
0_0_23208363_16575.cpp:279:8: error: redefinition of 'int rr'
 int ll,rr,c;
        ^
0_0_23208363_16575.cpp:94:8: note: 'int rr' previously declared here
 int ll,rr,c; 
        ^
0_0_23208363_16575.cpp:279:11: error: redefinition of 'int c'
 int ll,rr,c;
           ^
0_0_23208363_16575.cpp:94:11: note: 'int c' previously declared here
 int ll,rr,c; 
           ^
0_0_23208363_16575.cpp: In function 'void update(int, int, int)':
0_0_23208363_16575.cpp:281:7: error: redefinition of 'void update(int, int, int)'
 void  update(canshu){
       ^
0_0_23208363_16575.cpp:96:7: note: 'void update(int, int, int)' previously defined here
 void  update(canshu){ 
       ^
0_0_23208363_16575.cpp: In function 'int que(int, int, int)':
0_0_23208363_16575.cpp:309:5: error: redefinition of 'int que(int, int, int)'
 int que(canshu){
     ^
0_0_23208363_16575.cpp:124:5: note: 'int que(int, int, int)' previously defined here
 int que(canshu){ 
     ^
0_0_23208363_16575.cpp: In function 'int main()':
0_0_23208363_16575.cpp:339:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_23208363_16575.cpp:154:5: note: 'int main()' previously defined here
 int main(){ 
     ^
0_0_23208363_16575.cpp: At global scope:
0_0_23208363_16575.cpp:388:1: error: expected unqualified-id before '?' token
 ???????????????
 ^
0_0_23208363_16575.cpp: In function 'void tclear(int, int)':
0_0_23208363_16575.cpp:413:7: error: redefinition of 'void tclear(int, int)'
 void  tclear(int rt,int s){ 
       ^
0_0_23208363_16575.cpp:34:7: note: 'void tclear(int, int)' previously defined here
 void  tclear(int rt,int s){ 
       ^
0_0_23208363_16575.cpp: In function 'void build(int, int, int)':
0_0_23208363_16575.cpp:419:7: error: redefinition of 'void build(int, int, int)'
 void  build(canshu){ 
       ^
0_0_23208363_16575.cpp:40:7: note: 'void build(int, int, int)' previously defined here
 void  build(canshu){ 
       ^
0_0_23208363_16575.cpp: In function 'int max(int, int, int)':
0_0_23208363_16575.cpp:435:5: error: redefinition of 'int max(int, int, int)'
 int max(int a,int b,int c){ 
     ^
0_0_23208363_16575.cpp:56:5: note: 'int max(int, int, int)' previously defined here
 int max(int a,int b,int c){ 
     ^
0_0_23208363_16575.cpp: In function 'void pushdown(int, int, int)':
0_0_23208363_16575.cpp:457:7: error: redefinition of 'void pushdown(int, int, int)'
 void  pushdown(canshu){ 
       ^
0_0_23208363_16575.cpp:78:7: note: 'void pushdown(int, int, int)' previously defined here
 void  pushdown(canshu){ 
       ^
0_0_23208363_16575.cpp: At global scope:
0_0_23208363_16575.cpp:475:5: error: redefinition of 'int ll'
 int ll,rr,c; 
     ^
0_0_23208363_16575.cpp:94:5: note: 'int ll' previously declared here
 int ll,rr,c; 
     ^
0_0_23208363_16575.cpp:475:8: error: redefinition of 'int rr'
 int ll,rr,c; 
        ^
0_0_23208363_16575.cpp:94:8: note: 'int rr' previously declared here
 int ll,rr,c; 
        ^
0_0_23208363_16575.cpp:475:11: error: redefinition of 'int c'
 int ll,rr,c; 
           ^
0_0_23208363_16575.cpp:94:11: note: 'int c' previously declared here
 int ll,rr,c; 
           ^
0_0_23208363_16575.cpp: In function 'void update(int, int, int)':
0_0_23208363_16575.cpp:477:7: error: redefinition of 'void update(int, int, int)'
 void  update(canshu){ 
       ^
0_0_23208363_16575.cpp:96:7: note: 'void update(int, int, int)' previously defined here
 void  update(canshu){ 
       ^
0_0_23208363_16575.cpp: In function 'int que(int, int, int)':
0_0_23208363_16575.cpp:501:5: error: redefinition of 'int que(int, int, int)'
 int que(canshu){ 
     ^
0_0_23208363_16575.cpp:124:5: note: 'int que(int, int, int)' previously defined here
 int que(canshu){ 
     ^
0_0_23208363_16575.cpp: In function 'int main()':
0_0_23208363_16575.cpp:519:5: error: redefinition of 'int main()'
 int main(){ 
     ^
0_0_23208363_16575.cpp:154:5: note: 'int main()' previously defined here
 int main(){ 
     ^
0_0_23208363_16575.cpp: At global scope:
0_0_23208363_16575.cpp:578:11: error: redefinition of 'int tr [200040]'
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
           ^
0_0_23208363_16575.cpp:217:5: note: 'int tr [200040]' previously declared here
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
     ^
0_0_23208363_16575.cpp:578:19: error: redefinition of 'int lv [200040]'
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
                   ^
0_0_23208363_16575.cpp:217:13: note: 'int lv [200040]' previously declared here
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
             ^
0_0_23208363_16575.cpp:578:27: error: redefinition of 'int rv [200040]'
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
                           ^
0_0_23208363_16575.cpp:217:21: note: 'int rv [200040]' previously declared here
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
                     ^
0_0_23208363_16575.cpp:578:36: error: redefinition of 'int sum [200040]'
 int tr[X*4],lv[X*4],rv[X*4],sum[X*4];
                                    ^
0_0_23208363_16575.cpp:217:29: note: 'int sum [


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-23 05:06:30, Gzip enabled