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_17240128_17461.c:4:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_17240128_17461.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_17240128_17461.c:10:5: error: variably modified 'num' at file scope
 int num[N],siz[N],top[N],son[N];
     ^
0_0_17240128_17461.c:10:12: error: variably modified 'siz' at file scope
 int num[N],siz[N],top[N],son[N];
            ^
0_0_17240128_17461.c:10:19: error: variably modified 'top' at file scope
 int num[N],siz[N],top[N],son[N];
                   ^
0_0_17240128_17461.c:10:26: error: variably modified 'son' at file scope
 int num[N],siz[N],top[N],son[N];
                          ^
0_0_17240128_17461.c:11:5: error: variably modified 'dep' at file scope
 int dep[N],tid[N],rank[N],fa[N];
     ^
0_0_17240128_17461.c:11:12: error: variably modified 'tid' at file scope
 int dep[N],tid[N],rank[N],fa[N];
            ^
0_0_17240128_17461.c:11:19: error: variably modified 'rank' at file scope
 int dep[N],tid[N],rank[N],fa[N];
                   ^
0_0_17240128_17461.c:11:27: error: variably modified 'fa' at file scope
 int dep[N],tid[N],rank[N],fa[N];
                           ^
0_0_17240128_17461.c:12:5: error: variably modified 'head' at file scope
 int head[N],to[2*N],next[2*N],edge;
     ^
0_0_17240128_17461.c:12:13: error: variably modified 'to' at file scope
 int head[N],to[2*N],next[2*N],edge;
             ^
0_0_17240128_17461.c:12:21: error: variably modified 'next' at file scope
 int head[N],to[2*N],next[2*N],edge;
                     ^
0_0_17240128_17461.c:28:1: error: expected identifier or '(' before '/' token
 //树链剖分部分
 ^
0_0_17240128_17461.c:28:1: error: stray '\312' in program
0_0_17240128_17461.c:28:1: error: stray '\367' in program
0_0_17240128_17461.c:28:1: error: stray '\301' in program
0_0_17240128_17461.c:28:1: error: stray '\264' in program
0_0_17240128_17461.c:28:1: error: stray '\306' in program
0_0_17240128_17461.c:28:1: error: stray '\312' in program
0_0_17240128_17461.c:28:1: error: stray '\267' in program
0_0_17240128_17461.c:28:1: error: stray '\326' in program
0_0_17240128_17461.c:28:1: error: stray '\262' in program
0_0_17240128_17461.c:28:1: error: stray '\277' in program
0_0_17240128_17461.c:28:1: error: stray '\267' in program
0_0_17240128_17461.c:28:1: error: stray '\326' in program
0_0_17240128_17461.c: In function 'dfs2':
0_0_17240128_17461.c:54:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=head[u];~i;i=next[i])
     ^
0_0_17240128_17461.c:54:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_17240128_17461.c: At top level:
0_0_17240128_17461.c:62:1: error: expected identifier or '(' before '/' token
 //线段树部分
 ^
0_0_17240128_17461.c:62:1: error: stray '\317' in program
0_0_17240128_17461.c:62:1: error: stray '\337' in program
0_0_17240128_17461.c:62:1: error: stray '\266' in program
0_0_17240128_17461.c:62:1: error: stray '\316' in program
0_0_17240128_17461.c:62:1: error: stray '\312' in program
0_0_17240128_17461.c:62:1: error: stray '\367' in program
0_0_17240128_17461.c:62:1: error: stray '\262' in program
0_0_17240128_17461.c:62:1: error: stray '\277' in program
0_0_17240128_17461.c:62:1: error: stray '\267' in program
0_0_17240128_17461.c:62:1: error: stray '\326' in program
0_0_17240128_17461.c: In function 'PushUP':
0_0_17240128_17461.c:70:5: error: 'sum' undeclared (first use in this function)
     sum[rt]=max(sum[rt<<1],sum[rt<<1|1]);
     ^
0_0_17240128_17461.c:70:5: note: each undeclared identifier is reported only once for each function it appears in
0_0_17240128_17461.c: In function 'PushDown':
0_0_17240128_17461.c:75:8: error: 'col' undeclared (first use in this function)
     if(col[rt])
        ^
0_0_17240128_17461.c:79:9: error: 'sum' undeclared (first use in this function)
         sum[rt<<1]+=(m-(m>>1))*col[rt];
         ^
0_0_17240128_17461.c: In function 'Build':
0_0_17240128_17461.c:87:5: error: 'col' undeclared (first use in this function)
     col[rt]=0;
     ^
0_0_17240128_17461.c:90:9: error: 'sum' undeclared (first use in this function)
         sum[rt]=num[rank[l]];
         ^
0_0_17240128_17461.c: In function 'Update':
0_0_17240128_17461.c:103:9: error: 'col' undeclared (first use in this function)
         col[rt]+=v;
         ^
0_0_17240128_17461.c:104:9: error: 'sum' undeclared (first use in this function)
         sum[rt]+=v*(r-l+1);
         ^
0_0_17240128_17461.c: In function 'Query':
0_0_17240128_17461.c:119:16: error: 'sum' undeclared (first use in this function)
         return sum[rt];
                ^
0_0_17240128_17461.c: In function 'main':
0_0_17240128_17461.c:148:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=1;i<=n;i++)
         ^
0_0_17240128_17461.c:150:17: error: redefinition of 'i'
         for(int i=1;i<=m;i++)
                 ^
0_0_17240128_17461.c:148:17: note: previous definition of 'i' was here
         for(int i=1;i<=n;i++)
                 ^
0_0_17240128_17461.c:150:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=1;i<=m;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-23 10:05:54, Gzip enabled