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_13809630_24220.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13809630_24220.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13809630_24220.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13809630_24220.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13809630_24220.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13809630_24220.cpp:14:1: error: expected ']' before 'int'
 int pre[maxn],root[maxn],siz[maxn],son[maxn],w[maxn],dep[maxn],id;//ԭ���ĸ��� ���ϵĸ� siz �����siz������ ���·����id ��� getid����������
 ^
0_0_13809630_24220.cpp:15:1: error: 'pairans' does not name a type
 pairans[maxn
 ^
0_0_13809630_24220.cpp: In function 'void init()':
0_0_13809630_24220.cpp:20:5: error: 'pre' was not declared in this scope
     pre[1]=0;
     ^
0_0_13809630_24220.cpp:21:5: error: 'dep' was not declared in this scope
     dep[1]=0;
     ^
0_0_13809630_24220.cpp:22:5: error: 'tot' was not declared in this scope
     tot=0;id=0;
     ^
0_0_13809630_24220.cpp:22:11: error: 'id' was not declared in this scope
     tot=0;id=0;
           ^
0_0_13809630_24220.cpp:23:12: error: 'head' was not declared in this scope
     memset(head,0,sizeof head);
            ^
0_0_13809630_24220.cpp:23:30: error: 'memset' was not declared in this scope
     memset(head,0,sizeof head);
                              ^
0_0_13809630_24220.cpp: In function 'void addedge(int, int)':
0_0_13809630_24220.cpp:27:5: error: 'tot' was not declared in this scope
     tot++;
     ^
0_0_13809630_24220.cpp:28:5: error: 'next' was not declared in this scope
     next[tot]=head[u];
     ^
0_0_13809630_24220.cpp:28:15: error: 'head' was not declared in this scope
     next[tot]=head[u];
               ^
0_0_13809630_24220.cpp:29:5: error: 'to' was not declared in this scope
     to[tot]=v;
     ^
0_0_13809630_24220.cpp: In function 'void dfs(int)':
0_0_13809630_24220.cpp:34:5: error: 'son' was not declared in this scope
     son[now]=0;
     ^
0_0_13809630_24220.cpp:35:5: error: 'siz' was not declared in this scope
     siz[now]=1;
     ^
0_0_13809630_24220.cpp:36:16: error: 'head' was not declared in this scope
     for(int p =head[now]; p ; p=next[p])
                ^
0_0_13809630_24220.cpp:36:33: error: 'next' was not declared in this scope
     for(int p =head[now]; p ; p=next[p])
                                 ^
0_0_13809630_24220.cpp:38:15: error: 'to' was not declared in this scope
         int t=to[p];
               ^
0_0_13809630_24220.cpp:39:15: error: 'pre' was not declared in this scope
         if(t!=pre[now])
               ^
0_0_13809630_24220.cpp:42:13: error: 'dep' was not declared in this scope
             dep[t]=dep[now]+1;
             ^
0_0_13809630_24220.cpp:44:22: error: expected ')' before 'siz'
             if(siz[t]siz[son[now]])son[now]=t;
                      ^
0_0_13809630_24220.cpp: In function 'void getid(int, int)':
0_0_13809630_24220.cpp:51:5: error: 'w' was not declared in this scope
     w[now]=++id;
     ^
0_0_13809630_24220.cpp:51:14: error: 'id' was not declared in this scope
     w[now]=++id;
              ^
0_0_13809630_24220.cpp:52:5: error: 'root' was not declared in this scope
     root[now]=rt;
     ^
0_0_13809630_24220.cpp:53:8: error: 'son' was not declared in this scope
     if(son[now])getid(son[now],rt);
        ^
0_0_13809630_24220.cpp:54:17: error: 'head' was not declared in this scope
     for(int p = head[now] ; p ; p=next[p])
                 ^
0_0_13809630_24220.cpp:54:35: error: 'next' was not declared in this scope
     for(int p = head[now] ; p ; p=next[p])
                                   ^
0_0_13809630_24220.cpp:56:15: error: 'to' was not declared in this scope
         int t=to[p];
               ^
0_0_13809630_24220.cpp:57:15: error: 'son' was not declared in this scope
         if(t!=son[now]&&t!=pre[now])
               ^
0_0_13809630_24220.cpp:57:28: error: 'pre' was not declared in this scope
         if(t!=son[now]&&t!=pre[now])
                            ^
0_0_13809630_24220.cpp: In function 'void pushdown(int, int, int)':
0_0_13809630_24220.cpp:65:9: error: 'cov' was not declared in this scope
         cov[num].first=cov[num].second=0;
         ^
0_0_13809630_24220.cpp:68:8: error: 'cov' was not declared in this scope
     if(cov[num].second)
        ^
0_0_13809630_24220.cpp:71:13: error: expected ']' before 'cov'
             cov[num
             ^
0_0_13809630_24220.cpp:71:13: error: expected ')' before 'cov'
0_0_13809630_24220.cpp: In function 'void build(int, int, int)':
0_0_13809630_24220.cpp:107:5: error: 'ans' was not declared in this scope
     ans[num].first=ans[num].second=0;
     ^
0_0_13809630_24220.cpp:108:5: error: 'cov' was not declared in this scope
     cov[num].first=0;
     ^
0_0_13809630_24220.cpp:111:15: error: too few arguments to function 'void build(int, int, int)'
     build(lson);
               ^
0_0_13809630_24220.cpp:105:6: note: declared here
 void build(int num,int s,int e)
      ^
0_0_13809630_24220.cpp:112:15: error: too few arguments to function 'void build(int, int, int)'
     build(rson);
               ^
0_0_13809630_24220.cpp:105:6: note: declared here
 void build(int num,int s,int e)
      ^
0_0_13809630_24220.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_13809630_24220.cpp:118:12: error: 'cov' was not declared in this scope
         if(cov[num].second==val)
            ^
0_0_13809630_24220.cpp:127:16: error: 'cov' was not declared in this scope
             if(cov[num].firstans[num].first)
                ^
0_0_13809630_24220.cpp:128:17: error: 'ans' was not declared in this scope
                 ans[num]=cov[num];
                 ^
0_0_13809630_24220.cpp:134:5: error: expected ')' before 'if'
     if(rmid)update(rson,l,r,val);
     ^
0_0_13809630_24220.cpp: In function 'int query(int, int, int, int)':
0_0_13809630_24220.cpp:138:20: error: 'ans' was not declared in this scope
     if(s==e)return ans[num].second;
                    ^
0_0_13809630_24220.cpp:141:5: error: expected ')' before 'else'
     else return query(rson,pos);
     ^
0_0_13809630_24220.cpp: In function 'void work(int, int, int)':
0_0_13809630_24220.cpp:145:11: error: 'root' was not declared in this scope
     while(root[x]!=root[y])
           ^
0_0_13809630_24220.cpp:147:12: error: 'dep' was not declared in this scope
         if(dep[root[x]]
            ^
0_0_13809630_24220.cpp:148:9: error: expected ')' before 'update'
         update(1,1,n,w[root[x]],w[x],val);
         ^
0_0_13809630_24220.cpp:149:11: error: 'pre' was not declared in this scope
         x=pre[root[x]];
           ^
0_0_13809630_24220.cpp:151:8: error: 'dep' was not declared in this scope
     if(dep[x]dep[y])swap(x,y);
        ^
0_0_13809630_24220.cpp:151:14: error: expected ')' before 'dep'
     if(dep[x]dep[y])swap(x,y);
              ^
0_0_13809630_24220.cpp:151:29: error: 'swap' was not declared in this scope
     if(dep[x]dep[y])swap(x,y);
                             ^
0_0_13809630_24220.cpp:152:16: error: 'n' was not declared in this scope
     update(1,1,n,w[x],w[y],val);
                ^
0_0_13809630_24220.cpp:152:18: error: 'w' was not declared in this scope
     update(1,1,n,w[x],w[y],val);
                  ^
0_0_13809630_24220.cpp: At global scope:
0_0_13809630_24220.cpp:158:9: error: expected type-specifier before 'return'
         return z
         ^
0_0_13809630_24220.cpp:159:5: error: expected ';' after struct definition
     }
     ^
0_0_13809630_24220.cpp:160:1: error: expected declaration before '}' token
 }line[maxn];
 ^


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-06-26 17:35:06, Gzip enabled