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_29445656_18846.cpp:11:1: error: expected unqualified-id before 'for'
 for(int i=0;i<(int) n; i++)
 ^
0_0_29445656_18846.cpp:11:13: error: 'i' does not name a type
 for(int i=0;i<(int) n; i++)
             ^
0_0_29445656_18846.cpp:11:24: error: 'i' does not name a type
 for(int i=0;i<(int) n; i++)
                        ^
0_0_29445656_18846.cpp:13:13: error: 'i' does not name a type
 for(int i=x;i<=(int)y; i++)
             ^
0_0_29445656_18846.cpp:13:24: error: 'i' does not name a type
 for(int i=x;i<=(int)y; i++)
                        ^
0_0_29445656_18846.cpp:15:7: error: 'll' does not name a type
 const ll mod = 1e9 + 7;
       ^
0_0_29445656_18846.cpp:16:16: error: 'll' does not name a type
 struct node{   ll sum, cnt;}a[maxn<<2];
                ^
0_0_29445656_18846.cpp:16:31: error: 'maxn' was not declared in this scope
 struct node{   ll sum, cnt;}a[maxn<<2];
                               ^
0_0_29445656_18846.cpp:18:1: error: 'll' does not name a type
 ll col[maxn<<2];
 ^
0_0_29445656_18846.cpp:19:1: error: 'll' does not name a type
 ll pow_(int nn,int b){   
 ^
0_0_29445656_18846.cpp: In function 'void push_up(int)':
0_0_29445656_18846.cpp:26:1: error: 'a' was not declared in this scope
 a[rt].cnt = a[ls].cnt+a[rs].cnt;  
 ^
0_0_29445656_18846.cpp:27:35: error: 'mod' was not declared in this scope
 a[rt].sum = (a[ls].sum+a[rs].sum)%mod;}
                                   ^
0_0_29445656_18846.cpp: In function 'void push_down(int)':
0_0_29445656_18846.cpp:29:4: error: 'col' was not declared in this scope
 if(col[rt] > 1){      
    ^
0_0_29445656_18846.cpp:30:29: error: 'mod' was not declared in this scope
 col[ls] = (col[ls]*col[rt])%mod;      
                             ^
0_0_29445656_18846.cpp:32:1: error: 'a' was not declared in this scope
 a[ls].sum = a[ls].sum*col[rt]%mod;      
 ^
0_0_29445656_18846.cpp: In function 'void build(int, int, int)':
0_0_29445656_18846.cpp:36:1: error: 'a' was not declared in this scope
 a[rt].sum = a[rt].cnt = 0; 
 ^
0_0_29445656_18846.cpp:37:1: error: 'col' was not declared in this scope
 col[rt] = 1;    
 ^
0_0_29445656_18846.cpp:9:26: error: unable to find numeric literal operator 'operator""using'
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:41:7: note: in expansion of macro 'rson'
 build(rson);}
       ^
0_0_29445656_18846.cpp:9:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:41:7: note: in expansion of macro 'rson'
 build(rson);}
       ^
0_0_29445656_18846.cpp:41:11: error: expected primary-expression before ')' token
 build(rson);}
           ^
0_0_29445656_18846.cpp: In function 'void mul(int, int, int, int, int)':
0_0_29445656_18846.cpp:44:1: error: 'a' was not declared in this scope
 a[rt].sum = a[rt].sum*2%mod;      
 ^
0_0_29445656_18846.cpp:44:25: error: 'mod' was not declared in this scope
 a[rt].sum = a[rt].sum*2%mod;      
                         ^
0_0_29445656_18846.cpp:45:1: error: 'col' was not declared in this scope
 col[rt]=col[rt]*2%mod;      
 ^
0_0_29445656_18846.cpp:9:26: error: unable to find numeric literal operator 'operator""using'
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:50:14: note: in expansion of macro 'rson'
 if(R> m) mul(rson,L,R);   
              ^
0_0_29445656_18846.cpp:9:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:50:14: note: in expansion of macro 'rson'
 if(R> m) mul(rson,L,R);   
              ^
0_0_29445656_18846.cpp:50:18: error: expected primary-expression before ',' token
 if(R> m) mul(rson,L,R);   
                  ^
0_0_29445656_18846.cpp: In function 'int query_cnt(int, int, int, int, int)':
0_0_29445656_18846.cpp:54:8: error: 'a' was not declared in this scope
 return a[rt].cnt;   
        ^
0_0_29445656_18846.cpp:9:26: error: unable to find numeric literal operator 'operator""using'
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:58:27: note: in expansion of macro 'rson'
 if(R> m) all += query_cnt(rson,L,R);  
                           ^
0_0_29445656_18846.cpp:9:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:58:27: note: in expansion of macro 'rson'
 if(R> m) all += query_cnt(rson,L,R);  
                           ^
0_0_29445656_18846.cpp:58:31: error: expected primary-expression before ',' token
 if(R> m) all += query_cnt(rson,L,R);  
                               ^
0_0_29445656_18846.cpp: At global scope:
0_0_29445656_18846.cpp:60:1: error: 'll' does not name a type
 ll query_sum(int l,int r,int rt,int L,int R){   
 ^
0_0_29445656_18846.cpp: In function 'void update(int, int, int, int, int)':
0_0_29445656_18846.cpp:71:1: error: 'a' was not declared in this scope
 a[rt].cnt = 1;      
 ^
0_0_29445656_18846.cpp:72:1: error: 'll' was not declared in this scope
 ll x = (l==1 ? 0 : query_cnt(1,n,1,1,l-1));      
 ^
0_0_29445656_18846.cpp:73:20: error: 'x' was not declared in this scope
 a[rt].sum = pow_(2,x+aa);      
                    ^
0_0_29445656_18846.cpp:73:24: error: 'pow_' was not declared in this scope
 a[rt].sum = pow_(2,x+aa);      
                        ^
0_0_29445656_18846.cpp:9:26: error: unable to find numeric literal operator 'operator""using'
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:78:19: note: in expansion of macro 'rson'
 if(p >  m) update(rson,p,aa);  
                   ^
0_0_29445656_18846.cpp:9:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define rson m+1,r,rt<<1|1using namespace std;typedef long long ll;
                          ^
0_0_29445656_18846.cpp:78:19: note: in expansion of macro 'rson'
 if(p >  m) update(rson,p,aa);  
                   ^
0_0_29445656_18846.cpp:78:23: error: expected primary-expression before ',' token
 if(p >  m) update(rson,p,aa);  
                       ^
0_0_29445656_18846.cpp: At global scope:
0_0_29445656_18846.cpp:82:4: error: 'maxn' was not declared in this scope
 st[maxn];
    ^
0_0_29445656_18846.cpp:85:1: error: 'map' does not name a type
 map<int,int> Rank;
 ^
0_0_29445656_18846.cpp: In function 'int main()':
0_0_29445656_18846.cpp:91:28: error: 'st' was not declared in this scope
 rep1(i,1,n) scanf("%d %d",&st[i].a,&st[i].b),st[i].id = i;      
                            ^
0_0_29445656_18846.cpp:91:31: error: 'i' was not declared in this scope
 rep1(i,1,n) scanf("%d %d",&st[i].a,&st[i].b),st[i].id = i;      
                               ^
0_0_29445656_18846.cpp:92:22: error: 'sort' was not declared in this scope
 sort(st+1,st+1+n,cmp1);      
                      ^
0_0_29445656_18846.cpp:92:22: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_29445656_18846.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
0_0_29445656_18846.cpp:93:1: error: 'Rank' was not declared in this scope
 Rank.clear();      
 ^
0_0_29445656_18846.cpp:96:1: error: 'll' was not declared in this scope
 ll ans = 0;      
 ^
0_0_29445656_18846.cpp:98:1: error: 'ans' was not declared in this scope
 ans = (ans + query_sum(1,n,1,Rank[st[i].id],n)*pow_(3,st[i].b)%mod)%mod;        
 ^
0_0_29445656_18846.cpp:98:46: error: 'query_sum' was not declared in this scope
 ans = (ans + query_sum(1,n,1,Rank[st[i].id],n)*pow_(3,st[i].b)%mod)%mod;        
                                              ^
0_0_29445656_18846.cpp:98:62: error: 'pow_' was not declared in this scope
 ans = (ans + query_sum(1,n,1,Rank[st[i].id],n)*pow_(3,st[i].b)%mod)%mod;        
                                                              ^
0_0_29445656_18846.cpp:98:64: error: 'mod' was not declared in this scope
 ans = (ans + query_sum(1,n,1,Rank[st[i].id],n)*pow_(3,st[i].b)%mod)%mod;        
                                                                ^
0_0_29445656_18846.cpp:100:19: error: 'ans' was not declared in this scope
  printf("%I64d\n",ans);   }  
                   ^


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-09-29 05:14:23, Gzip enabled