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_17251431_15290.cpp:3:30: error: stray '#' in program
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                              ^
0_0_17251431_15290.cpp:10:46: note: in expansion of macro 'lson'
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                              ^
0_0_17251431_15290.cpp:3:30: error: stray '#' in program
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                              ^
0_0_17251431_15290.cpp:17:24: note: in expansion of macro 'lson'
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                        ^
0_0_17251431_15290.cpp:3:30: error: stray '#' in program
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                              ^
0_0_17251431_15290.cpp:24:30: note: in expansion of macro 'lson'
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                              ^
0_0_17251431_15290.cpp:4:9: error: 'maxn' was not declared in this scope
 int sum[maxn<<2];
         ^
0_0_17251431_15290.cpp: In function 'void PushUP(int)':
0_0_17251431_15290.cpp:6:1: error: 'sum' was not declared in this scope
 sum[rt] = sum[rt<<1] + sum[rt<<1|1];
 ^
0_0_17251431_15290.cpp: In function 'void build(int, int, int)':
0_0_17251431_15290.cpp:9:1: error: 'sum' was not declared in this scope
 sum[rt] = 0;
 ^
0_0_17251431_15290.cpp:10:22: error: 'intm' was not declared in this scope
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                      ^
0_0_17251431_15290.cpp:3:18: error: 'm' was not declared in this scope
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                  ^
0_0_17251431_15290.cpp:10:46: note: in expansion of macro 'lson'
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                              ^
0_0_17251431_15290.cpp:3:31: error: expected ')' before 'define'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                               ^
0_0_17251431_15290.cpp:10:46: note: in expansion of macro 'lson'
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                              ^
0_0_17251431_15290.cpp:3:67: error: expected ')' before 'const'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                                                                   ^
0_0_17251431_15290.cpp:10:46: note: in expansion of macro 'lson'
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                              ^
0_0_17251431_15290.cpp:10:50: error: expected primary-expression before ')' token
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                                  ^
0_0_17251431_15290.cpp:10:59: error: 'rson' was not declared in this scope
 if (l == r) return ; intm= (l+r) >> 1; build(lson); build(rson);
                                                           ^
0_0_17251431_15290.cpp: In function 'void update(int, int, int, int)':
0_0_17251431_15290.cpp:14:1: error: 'sum' was not declared in this scope
 sum[rt] ++;
 ^
0_0_17251431_15290.cpp:16:1: error: 'intm' was not declared in this scope
 intm= (l+r) >> 1;
 ^
0_0_17251431_15290.cpp:17:10: error: 'm' was not declared in this scope
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
          ^
0_0_17251431_15290.cpp:3:31: error: expected ')' before 'define'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                               ^
0_0_17251431_15290.cpp:17:24: note: in expansion of macro 'lson'
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                        ^
0_0_17251431_15290.cpp:3:67: error: expected ')' before 'const'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                                                                   ^
0_0_17251431_15290.cpp:17:24: note: in expansion of macro 'lson'
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                        ^
0_0_17251431_15290.cpp:17:28: error: expected primary-expression before ')' token
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                            ^
0_0_17251431_15290.cpp:17:31: error: 'else' without a previous 'if'
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                               ^
0_0_17251431_15290.cpp:17:47: error: 'rson' was not declared in this scope
 if (p <= m) update(p , lson); else update(p , rson); PushUP(rt);
                                               ^
0_0_17251431_15290.cpp: In function 'int query(int, int, int, int, int)':
0_0_17251431_15290.cpp:20:26: error: 'sum' was not declared in this scope
 if (L<=l&&r<=R) { return sum[rt];
                          ^
0_0_17251431_15290.cpp:22:1: error: 'intm' was not declared in this scope
 intm= (l+r) >> 1;
 ^
0_0_17251431_15290.cpp:24:10: error: 'm' was not declared in this scope
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
          ^
0_0_17251431_15290.cpp:3:31: error: expected ')' before 'define'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                               ^
0_0_17251431_15290.cpp:24:30: note: in expansion of macro 'lson'
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                              ^
0_0_17251431_15290.cpp:3:67: error: expected ')' before 'const'
 #define lson l , m , rt << 1 #define rson m + 1 , r , rt << 1 | 1 const int maxn = 5555;
                                                                   ^
0_0_17251431_15290.cpp:24:30: note: in expansion of macro 'lson'
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                              ^
0_0_17251431_15290.cpp:24:34: error: expected primary-expression before ')' token
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                                  ^
0_0_17251431_15290.cpp:24:45: error: 'm' was not declared in this scope
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                                             ^
0_0_17251431_15290.cpp:24:65: error: 'rson' was not declared in this scope
 if (L <= m) ret += query(L,R,lson); if (R > m) ret += query(L,R,rson); return ret;
                                                                 ^
0_0_17251431_15290.cpp: At global scope:
0_0_17251431_15290.cpp:26:7: error: 'maxn' was not declared in this scope
 int x[maxn]; int main() {
       ^
0_0_17251431_15290.cpp: In function 'int main()':
0_0_17251431_15290.cpp:31:6: error: 'inti' was not declared in this scope
 for (inti= 0 ;i<n;i++) {
      ^
0_0_17251431_15290.cpp:31:15: error: 'i' was not declared in this scope
 for (inti= 0 ;i<n;i++) {
               ^
0_0_17251431_15290.cpp:32:13: error: 'x' was not declared in this scope
 scanf("%d",&x[i]);
             ^
0_0_17251431_15290.cpp:36:6: error: 'inti' was not declared in this scope
 for (inti= 0 ;i<n;i++) {
      ^
0_0_17251431_15290.cpp:36:15: error: 'i' was not declared in this scope
 for (inti= 0 ;i<n;i++) {
               ^
0_0_17251431_15290.cpp:37:8: error: 'x' was not declared in this scope
 sum+=n-x[i] -x[i] - 1; ret = min(ret , sum);
        ^
0_0_17251431_15290.cpp:37:43: error: 'min' was not declared in this scope
 sum+=n-x[i] -x[i] - 1; ret = min(ret , 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-12-03 17:46:10, Gzip enabled