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_33137569_9156.cpp:6:17: error: declaration does not declare anything [-fpermissive]
 #define ll long long;
                 ^
0_0_33137569_9156.cpp:9:1: note: in expansion of macro 'll'
 ll sum[maxn*4],add[maxn*4];
 ^
0_0_33137569_9156.cpp:9:4: error: 'sum' does not name a type
 ll sum[maxn*4],add[maxn*4];
    ^
0_0_33137569_9156.cpp: In function 'void pushup(int)':
0_0_33137569_9156.cpp:11:5: error: 'sum' was not declared in this scope
     sum[rt]=sum[rt<<1]+sum[rt<<1|1];
     ^
0_0_33137569_9156.cpp: In function 'void pushdown(int, int)':
0_0_33137569_9156.cpp:14:8: error: 'add' was not declared in this scope
     if(add[rt]){
        ^
0_0_33137569_9156.cpp:17:9: error: 'sum' was not declared in this scope
         sum[rt<<1]=add[rt]*(len-(len>>1));
         ^
0_0_33137569_9156.cpp: In function 'void build(int, int, int)':
0_0_33137569_9156.cpp:23:5: error: 'add' was not declared in this scope
     add[rt]=0;
     ^
0_0_33137569_9156.cpp:25:9: error: 'sum' was not declared in this scope
         sum[rt]=1;
         ^
0_0_33137569_9156.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_33137569_9156.cpp:35:9: error: 'add' was not declared in this scope
         add[rt]=c;
         ^
0_0_33137569_9156.cpp:36:9: error: 'sum' was not declared in this scope
         sum[rt]=(ll)c*(r-l+1);
         ^
0_0_33137569_9156.cpp:6:12: error: expected primary-expression before 'long'
 #define ll long long;
            ^
0_0_33137569_9156.cpp:36:18: note: in expansion of macro 'll'
         sum[rt]=(ll)c*(r-l+1);
                  ^
0_0_33137569_9156.cpp:6:12: error: expected ')' before 'long'
 #define ll long long;
            ^
0_0_33137569_9156.cpp:36:18: note: in expansion of macro 'll'
         sum[rt]=(ll)c*(r-l+1);
                  ^
0_0_33137569_9156.cpp:36:20: error: expected primary-expression before ')' token
         sum[rt]=(ll)c*(r-l+1);
                    ^
0_0_33137569_9156.cpp: At global scope:
0_0_33137569_9156.cpp:6:17: error: declaration does not declare anything [-fpermissive]
 #define ll long long;
                 ^
0_0_33137569_9156.cpp:45:1: note: in expansion of macro 'll'
 ll querry(int L,int R,int l,int r,int rt){
 ^
0_0_33137569_9156.cpp: In function 'int querry(int, int, int, int, int)':
0_0_33137569_9156.cpp:46:27: error: 'sum' was not declared in this scope
     if(L<=l&&R>=r) return sum[rt];
                           ^
0_0_33137569_9156.cpp:6:17: error: declaration does not declare anything [-fpermissive]
 #define ll long long;
                 ^
0_0_33137569_9156.cpp:49:5: note: in expansion of macro 'll'
     ll ans=0;
     ^
0_0_33137569_9156.cpp:49:8: error: 'ans' was not declared in this scope
     ll ans=0;
        ^


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 17:38:59, Gzip enabled