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_19231265_10238.cpp:23:9: error: 'i' does not name a type
 int i=0;i<(n);i++)
         ^
0_0_19231265_10238.cpp:23:15: error: 'i' does not name a type
 int i=0;i<(n);i++)
               ^
0_0_19231265_10238.cpp:25:11: error: 'i' does not name a type
 int i=(n);i<=(m);i++)
           ^
0_0_19231265_10238.cpp:25:18: error: 'i' does not name a type
 int i=(n);i<=(m);i++)
                  ^
0_0_19231265_10238.cpp:27:11: error: 'i' does not name a type
 int i=(n);i>=(m);i--)
           ^
0_0_19231265_10238.cpp:27:18: error: 'i' does not name a type
 int i=(n);i>=(m);i--)
                  ^
0_0_19231265_10238.cpp: In function 'void initFa()':
0_0_19231265_10238.cpp:24:22: error: expected primary-expression before 'for'
 #define fff(i, n, m) for(
                      ^
0_0_19231265_10238.cpp:67:53: note: in expansion of macro 'fff'
 void initFa(){    dfs(1, -1, 0);    ff(k, maxlog-1) fff(u, 1, n) if(fa[k][u] == -1)        fa[k+1][u] = -1;    else        fa[k+1][u] = fa[k][fa[k][u]];} 
                                                     ^
0_0_19231265_10238.cpp:67:112: error: expected primary-expression before 'else'
 void initFa(){    dfs(1, -1, 0);    ff(k, maxlog-1) fff(u, 1, n) if(fa[k][u] == -1)        fa[k+1][u] = -1;    else        fa[k+1][u] = fa[k][fa[k][u]];} 
                                                                                                                ^
0_0_19231265_10238.cpp:67:112: error: expected ';' before 'else'
0_0_19231265_10238.cpp:67:112: error: expected primary-expression before 'else'
0_0_19231265_10238.cpp:67:112: error: expected ')' before 'else'
0_0_19231265_10238.cpp:67:112: error: expected primary-expression before 'else'
0_0_19231265_10238.cpp: In function 'int upSlope(int, int)':
0_0_19231265_10238.cpp:72:51: error: expected primary-expression before 'if'
 int p){    assert(p <= dep[u]);     ff(k, maxlog) if(p & bit(k))        u = fa[k][u];    return u;} 
                                                   ^
0_0_19231265_10238.cpp:72:90: error: expected primary-expression before 'return'
 int p){    assert(p <= dep[u]);     ff(k, maxlog) if(p & bit(k))        u = fa[k][u];    return u;} 
                                                                                          ^
0_0_19231265_10238.cpp:72:90: error: expected ';' before 'return'
0_0_19231265_10238.cpp:72:90: error: expected primary-expression before 'return'
0_0_19231265_10238.cpp:72:90: error: expected ')' before 'return'
0_0_19231265_10238.cpp: In function 'int lca(int, int)':
0_0_19231265_10238.cpp:77:129: error: expected primary-expression before 'if'
 int v){    if (dep[u] < dep[v]) swap(u, v);    u = upSlope(u, dep[u] - dep[v]);    if (u == v) return u;    dff(k, maxlog-1, 0) if (fa[k][u] != fa[k][v])        u = fa[k][u], v = fa[k][v];    return fa[0][u];} 
                                                                                                                                 ^
0_0_19231265_10238.cpp:77:193: error: expected primary-expression before 'return'
 int v){    if (dep[u] < dep[v]) swap(u, v);    u = upSlope(u, dep[u] - dep[v]);    if (u == v) return u;    dff(k, maxlog-1, 0) if (fa[k][u] != fa[k][v])        u = fa[k][u], v = fa[k][v];    return fa[0][u];} 
                                                                                                                                                                                                 ^
0_0_19231265_10238.cpp:77:193: error: expected ';' before 'return'
0_0_19231265_10238.cpp:77:193: error: expected primary-expression before 'return'
0_0_19231265_10238.cpp:77:193: error: expected ')' before 'return'
0_0_19231265_10238.cpp: In function 'void work()':
0_0_19231265_10238.cpp:104:49: error: expected primary-expression before '{' token
 int T;    scanf("%d", &T);    fff(cas, 1, T)    {        init();         scanf("%d", &n);        ff(i, n-1)        {            
                                                 ^
0_0_19231265_10238.cpp:114:137: error: expected primary-expression before '}' token
 int bc = lca(b, c);             printf("%d %d %d\n", calc(a, b, c, ab, ac), calc(b, a, c, ab, bc), calc(c, a, b, ac, bc));        }    }}
                                                                                                                                         ^
0_0_19231265_10238.cpp:114:137: error: expected ';' before '}' token
0_0_19231265_10238.cpp:114:137: error: expected primary-expression before '}' token
0_0_19231265_10238.cpp:114:137: error: expected ')' before '}' token
0_0_19231265_10238.cpp:114:137: error: expected primary-expression before '}' token


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-22 11:29:46, Gzip enabled