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_20966097_29502.cpp:8:18: error: stray '#' in program
 #define N 100000+10
                  ^
0_0_20966097_29502.cpp:10:8: note: in expansion of macro 'N'
 LL cnt[N];
        ^
0_0_20966097_29502.cpp:8:18: error: stray '#' in program
 #define N 100000+10
                  ^
0_0_20966097_29502.cpp:11:8: note: in expansion of macro 'N'
 LL pre[N];
        ^
0_0_20966097_29502.cpp:23:14: error: stray '#' in program
         ret += a[x];
              ^
0_0_20966097_29502.cpp:33:15: error: stray '#' in program
         a[x] += d;
               ^
0_0_20966097_29502.cpp:34:12: error: stray '#' in program
         x += lowbit(x);
            ^
0_0_20966097_29502.cpp:8:18: error: stray '#' in program
 #define N 100000+10
                  ^
0_0_20966097_29502.cpp:42:7: note: in expansion of macro 'N'
 }node[N];
       ^
0_0_20966097_29502.cpp:58:34: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                  ^
0_0_20966097_29502.cpp:58:39: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                       ^
0_0_20966097_29502.cpp:63:19: error: stray '#' in program
         sort(node+1, node+1+n, cmp1);
                   ^
0_0_20966097_29502.cpp:63:31: error: stray '#' in program
         sort(node+1, node+1+n, cmp1);
                               ^
0_0_20966097_29502.cpp:63:37: error: stray '#' in program
         sort(node+1, node+1+n, cmp1);
                                     ^
0_0_20966097_29502.cpp:65:34: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                  ^
0_0_20966097_29502.cpp:65:39: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                       ^
0_0_20966097_29502.cpp:81:19: error: stray '#' in program
         sort(node+1, node+1+n, cmp2);
                   ^
0_0_20966097_29502.cpp:81:31: error: stray '#' in program
         sort(node+1, node+1+n, cmp2);
                               ^
0_0_20966097_29502.cpp:81:37: error: stray '#' in program
         sort(node+1, node+1+n, cmp2);
                                     ^
0_0_20966097_29502.cpp:88:36: error: stray '#' in program
                 node[i].y = n - i + 1;
                                    ^
0_0_20966097_29502.cpp:89:31: error: stray '#' in program
                 rank = n - i + 1;
                               ^
0_0_20966097_29502.cpp:100:34: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                  ^
0_0_20966097_29502.cpp:100:39: error: stray '#' in program
         for(int i = 1; i <= n; i++)
                                       ^
0_0_20966097_29502.cpp:116:18: error: stray '#' in program
             ans += node[i].y * ((cnt_small*node[i].x - small ) + (big - cnt_big*node[i].x));
                  ^
0_0_20966097_29502.cpp:116:69: error: stray '#' in program
             ans += node[i].y * ((cnt_small*node[i].x - small ) + (big - cnt_big*node[i].x));
                                                                     ^
0_0_20966097_29502.cpp:8:21: error: expected ']' before ';' token
 #define N 100000+10
                     ^
0_0_20966097_29502.cpp:10:8: note: in expansion of macro 'N'
 LL cnt[N];
        ^
0_0_20966097_29502.cpp:8:22: error: expected unqualified-id before numeric constant
 #define N 100000+10
                      ^
0_0_20966097_29502.cpp:10:8: note: in expansion of macro 'N'
 LL cnt[N];
        ^
0_0_20966097_29502.cpp:8:21: error: expected ']' before ';' token
 #define N 100000+10
                     ^
0_0_20966097_29502.cpp:11:8: note: in expansion of macro 'N'
 LL pre[N];
        ^
0_0_20966097_29502.cpp:8:22: error: expected unqualified-id before numeric constant
 #define N 100000+10
                      ^
0_0_20966097_29502.cpp:11:8: note: in expansion of macro 'N'
 LL pre[N];
        ^
0_0_20966097_29502.cpp: In function 'int sum(long long int*, int)':
0_0_20966097_29502.cpp:23:18: error: expected primary-expression before '=' token
         ret += a[x];
                  ^
0_0_20966097_29502.cpp: In function 'void add(long long int*, int, int)':
0_0_20966097_29502.cpp:33:19: error: expected primary-expression before '=' token
         a[x] += d;
                   ^
0_0_20966097_29502.cpp:34:16: error: expected primary-expression before '=' token
         x += lowbit(x);
                ^
0_0_20966097_29502.cpp: At global scope:
0_0_20966097_29502.cpp:8:21: error: expected ']' before ';' token
 #define N 100000+10
                     ^
0_0_20966097_29502.cpp:42:7: note: in expansion of macro 'N'
 }node[N];
       ^
0_0_20966097_29502.cpp:8:22: error: expected unqualified-id before numeric constant
 #define N 100000+10
                      ^
0_0_20966097_29502.cpp:42:7: note: in expansion of macro 'N'
 }node[N];
       ^
0_0_20966097_29502.cpp: In function 'int main()':
0_0_20966097_29502.cpp:58:37: error: expected ')' before ';' token
         for(int i = 1; i <= n; i++)
                                     ^
0_0_20966097_29502.cpp:58:40: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; i++)
                                        ^
0_0_20966097_29502.cpp:58:43: error: expected primary-expression before ')' token
         for(int i = 1; i <= n; i++)
                                           ^
0_0_20966097_29502.cpp:63:14: error: 'node' was not declared in this scope
         sort(node+1, node+1+n, cmp1);
              ^
0_0_20966097_29502.cpp:63:48: error: expected ';' before ')' token
         sort(node+1, node+1+n, cmp1);
                                                ^
0_0_20966097_29502.cpp:65:37: error: expected ')' before ';' token
         for(int i = 1; i <= n; i++)
                                     ^
0_0_20966097_29502.cpp:65:40: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; i++)
                                        ^
0_0_20966097_29502.cpp:65:43: error: expected primary-expression before ')' token
         for(int i = 1; i <= n; i++)
                                           ^
0_0_20966097_29502.cpp:81:48: error: expected ';' before ')' token
         sort(node+1, node+1+n, cmp2);
                                                ^
0_0_20966097_29502.cpp:97:16: error: 'cnt' was not declared in this scope
         memset(cnt, 0, sizeof(cnt));
                ^
0_0_20966097_29502.cpp:98:16: error: 'pre' was not declared in this scope
         memset(pre, 0, sizeof(pre));
                ^
0_0_20966097_29502.cpp:100:37: error: expected ')' before ';' token
         for(int i = 1; i <= n; i++)
                                     ^
0_0_20966097_29502.cpp:100:40: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; i++)
                                        ^
0_0_20966097_29502.cpp:100:43: error: expected primary-expression before ')' token
         for(int i = 1; i <= n; i++)
                                           ^


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-25 14:51:38, Gzip enabled