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_29657881_8643.cpp:7:13: error: expected initializer before numeric constant
 const int N 4e5+10;
             ^
0_0_29657881_8643.cpp:8:8: error: 'N' was not declared in this scope
 ll sum[N];
        ^
0_0_29657881_8643.cpp:9:9: error: 'N' was not declared in this scope
 int add[N];
         ^
0_0_29657881_8643.cpp: In function 'void pushdown(int, int)':
0_0_29657881_8643.cpp:12:8: error: 'add' was not declared in this scope
     if(add[rt])
        ^
0_0_29657881_8643.cpp:16:9: error: 'sum' was not declared in this scope
         sum[rt*2] += add[rt]*(m-m/2);
         ^
0_0_29657881_8643.cpp: In function 'void Build(int, int, int)':
0_0_29657881_8643.cpp:26:23: error: 'sum' was not declared in this scope
         scanf("%lld",&sum[rt]);
                       ^
0_0_29657881_8643.cpp:33:5: error: 'sum' was not declared in this scope
     sum[rt] = sum[rt*2]+sum[rt*2+1];
     ^
0_0_29657881_8643.cpp: In function 'void change(int, int, int, int, int, int)':
0_0_29657881_8643.cpp:39:9: error: 'add' was not declared in this scope
         add[rt] += c;
         ^
0_0_29657881_8643.cpp:40:9: error: 'sum' was not declared in this scope
         sum[rt] +=(ll)c*(y-x+1);
         ^
0_0_29657881_8643.cpp:55:5: error: 'sum' was not declared in this scope
     sum[rt] = sum[rt*2]+sum[rt*2+1];
     ^
0_0_29657881_8643.cpp: In function 'll query(int, int, int, int, int)':
0_0_29657881_8643.cpp:61:16: error: 'sum' was not declared in this scope
         return sum[rt];
                ^


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 02:37:12, Gzip enabled