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_23763913_31748.cpp:7:1: error: 'll' does not name a type
 ll sum[mx<<2],add[mx<<2];
 ^
0_0_23763913_31748.cpp: In function 'void pushup(int)':
0_0_23763913_31748.cpp:9:5: error: 'sum' was not declared in this scope
     sum[rt]=sum[rt<<1]+sum[rt<<1|1];
     ^
0_0_23763913_31748.cpp: In function 'void pushdown(int, int)':
0_0_23763913_31748.cpp:12:8: error: 'add' was not declared in this scope
     if(add[rt]) {
        ^
0_0_23763913_31748.cpp:15:9: error: 'sum' was not declared in this scope
         sum[rt<<1]=add[rt]*(len-(len>>1));
         ^
0_0_23763913_31748.cpp: In function 'void build(int, int, int)':
0_0_23763913_31748.cpp:21:5: error: 'add' was not declared in this scope
     add[rt]=0;
     ^
0_0_23763913_31748.cpp:23:9: error: 'sum' was not declared in this scope
         sum[rt]=1;
         ^
0_0_23763913_31748.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_23763913_31748.cpp:33:9: error: 'add' was not declared in this scope
         add[rt]=c;
         ^
0_0_23763913_31748.cpp:34:9: error: 'sum' was not declared in this scope
         sum[rt]=(ll)c*(r-l+1);
         ^
0_0_23763913_31748.cpp:34:18: error: 'll' was not declared in this scope
         sum[rt]=(ll)c*(r-l+1);
                  ^
0_0_23763913_31748.cpp: At global scope:
0_0_23763913_31748.cpp:43:1: error: 'll' does not name a type
 ll querry(int L,int R,int l,int r,int rt) {
 ^
0_0_23763913_31748.cpp: In function 'int main()':
0_0_23763913_31748.cpp:62:87: error: 'querry' was not declared in this scope
         printf("Case %d: The total value of the hook is %I64d.\n",cas,querry(1,n,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-10-06 13:27:21, Gzip enabled