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_36058756_10627.cpp:4:1: error: expected ';' before 'inline'
 inline int lowbit(int x){return x&-x;}
 ^
0_0_36058756_10627.cpp: In function 'void update(int, int)':
0_0_36058756_10627.cpp:5:46: error: 'maxx' was not declared in this scope
 inline void update(int cur,int v){while(cur<=maxx) c[cur]+=v,cur+=lowbit(cur);}
                                              ^
0_0_36058756_10627.cpp:5:52: error: 'c' was not declared in this scope
 inline void update(int cur,int v){while(cur<=maxx) c[cur]+=v,cur+=lowbit(cur);}
                                                    ^
0_0_36058756_10627.cpp: In function 'long long int query(int)':
0_0_36058756_10627.cpp:6:54: error: 'c' was not declared in this scope
 inline ll query(int cur){int sum=0;while(cur>0) sum+=c[cur],cur-=lowbit(cur);return sum;}
                                                      ^
0_0_36058756_10627.cpp: In function 'int main()':
0_0_36058756_10627.cpp:13:17: error: 'n' was not declared in this scope
   scanf("%d%d",&n,&k);
                 ^
0_0_36058756_10627.cpp:13:20: error: 'k' was not declared in this scope
   scanf("%d%d",&n,&k);
                    ^
0_0_36058756_10627.cpp:14:8: error: 'init' was not declared in this scope
   init();map<int,int> mp;
        ^
0_0_36058756_10627.cpp:18:16: error: 'a' was not declared in this scope
    scanf("%d",&a[i]);
                ^
0_0_36058756_10627.cpp:23:5: error: 'v' was not declared in this scope
     v[cnt].clear();
     ^
0_0_36058756_10627.cpp:31:11: error: 'add' was not declared in this scope
    add(x,y);add(y,x);
           ^
0_0_36058756_10627.cpp:33:10: error: 'dfs' was not declared in this scope
   dfs(1,0);
          ^
0_0_36058756_10627.cpp:34:15: error: 'm' was not declared in this scope
   scanf("%d",&m);
               ^
0_0_36058756_10627.cpp:38:4: error: 'b' was not declared in this scope
    b[i].l=in[x];b[i].r=out[x];b[i].id=i;
    ^
0_0_36058756_10627.cpp:38:11: error: 'in' was not declared in this scope
    b[i].l=in[x];b[i].r=out[x];b[i].id=i;
           ^
0_0_36058756_10627.cpp:38:24: error: 'out' was not declared in this scope
    b[i].l=in[x];b[i].r=out[x];b[i].id=i;
                        ^
0_0_36058756_10627.cpp:40:8: error: 'b' was not declared in this scope
   sort(b+1,b+1+m);
        ^
0_0_36058756_10627.cpp:43:6: error: 'pre' was not declared in this scope
    x=pre[i];
      ^
0_0_36058756_10627.cpp:44:4: error: 'v' was not declared in this scope
    v[x].push_back(i);
    ^
0_0_36058756_10627.cpp:56:27: error: 'ans' was not declared in this scope
    while(b[j].r==i&&j<=m) ans[b[j].id]=query(b[j++].l);
                           ^
0_0_36058756_10627.cpp:59:39: error: 'ans' was not declared in this scope
   for(int i=1;i<=m;i++) printf("%d\n",ans[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-09-28 16:11:23, Gzip enabled