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_22789034_22299\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_22789034_22299\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_22789034_22299\Main.java:3: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_22789034_22299\Main.java:4: 错误: 需要class, interface或enum
const int maxn = 3e5 + 10;
^
0_0_22789034_22299\Main.java:5: 错误: 需要class, interface或enum
const int inf = 0x3f3f3f3f;
^
0_0_22789034_22299\Main.java:7: 错误: 需要class, interface或enum
vector<int>G[maxn];
^
0_0_22789034_22299\Main.java:8: 错误: 需要class, interface或enum
const int root = 1;
^
0_0_22789034_22299\Main.java:10: 错误: 需要class, interface或enum
int pa[20][maxn];
^
0_0_22789034_22299\Main.java:11: 错误: 需要class, interface或enum
int depth[maxn];
^
0_0_22789034_22299\Main.java:13: 错误: 需要class, interface或enum
void dfs(int u,int d,int f)
^
0_0_22789034_22299\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i< G[u].size();i++)
    ^
0_0_22789034_22299\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i< G[u].size();i++)
                ^
0_0_22789034_22299\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i< G[u].size();i++)
                               ^
0_0_22789034_22299\Main.java:19: 错误: 需要class, interface或enum
        if(v==f)continue;
        ^
0_0_22789034_22299\Main.java:20: 错误: 需要class, interface或enum
        dfs(v,d+1,u);
        ^
0_0_22789034_22299\Main.java:21: 错误: 需要class, interface或enum
    }
    ^
0_0_22789034_22299\Main.java:26: 错误: 需要class, interface或enum
    for(int i=1;i<=k;i++)
    ^
0_0_22789034_22299\Main.java:26: 错误: 需要class, interface或enum
    for(int i=1;i<=k;i++)
                ^
0_0_22789034_22299\Main.java:26: 错误: 需要class, interface或enum
    for(int i=1;i<=k;i++)
                     ^
0_0_22789034_22299\Main.java:27: 错误: 需要class, interface或enum
        for(int j=1;j<=n;j++)
                    ^
0_0_22789034_22299\Main.java:27: 错误: 需要class, interface或enum
        for(int j=1;j<=n;j++)
                         ^
0_0_22789034_22299\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_22789034_22299\Main.java:33: 错误: 需要class, interface或enum
    int d=depth[x]-depth[y];
    ^
0_0_22789034_22299\Main.java:34: 错误: 需要class, interface或enum
    int k=(int)(log(1.0*n)/log(2.0));
    ^
0_0_22789034_22299\Main.java:35: 错误: 需要class, interface或enum
    for(int i=0;i<=k;i++)
    ^
0_0_22789034_22299\Main.java:35: 错误: 需要class, interface或enum
    for(int i=0;i<=k;i++)
                ^
0_0_22789034_22299\Main.java:35: 错误: 需要class, interface或enum
    for(int i=0;i<=k;i++)
                     ^
0_0_22789034_22299\Main.java:37: 错误: 需要class, interface或enum
    if(x==y)return x;
    ^
0_0_22789034_22299\Main.java:38: 错误: 需要class, interface或enum
    if(x!=y)
    ^
0_0_22789034_22299\Main.java:40: 错误: 需要class, interface或enum
        for(int i=k;i>=0;i--)
                    ^
0_0_22789034_22299\Main.java:40: 错误: 需要class, interface或enum
        for(int i=k;i>=0;i--)
                         ^
0_0_22789034_22299\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_22789034_22299\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_22789034_22299\Main.java:47: 错误: 需要class, interface或enum
int a[maxn];
^
0_0_22789034_22299\Main.java:48: 错误: 需要class, interface或enum
vector<vector<int>>dp;
^
0_0_22789034_22299\Main.java:50: 错误: 需要class, interface或enum
int main()
^
0_0_22789034_22299\Main.java:54: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) G[i].clear();
                       ^
0_0_22789034_22299\Main.java:54: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) G[i].clear();
                               ^
0_0_22789034_22299\Main.java:55: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) scanf("%d", &a[i]);
        ^
0_0_22789034_22299\Main.java:55: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) scanf("%d", &a[i]);
                       ^
0_0_22789034_22299\Main.java:55: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) scanf("%d", &a[i]);
                               ^
0_0_22789034_22299\Main.java:56: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i++)
        ^
0_0_22789034_22299\Main.java:56: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i++)
                       ^
0_0_22789034_22299\Main.java:56: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i++)
                              ^
0_0_22789034_22299\Main.java:59: 错误: 需要class, interface或enum
            scanf("%d%d", &u, &v);
            ^
0_0_22789034_22299\Main.java:60: 错误: 需要class, interface或enum
            G[u].push_back(v);
            ^
0_0_22789034_22299\Main.java:61: 错误: 需要class, interface或enum
            G[v].push_back(u);
            ^
0_0_22789034_22299\Main.java:62: 错误: 需要class, interface或enum
        }
        ^
0_0_22789034_22299\Main.java:64: 错误: 需要class, interface或enum
        init(n);
        ^
0_0_22789034_22299\Main.java:66: 错误: 需要class, interface或enum
        dp.resize(n + 1);
        ^
0_0_22789034_22299\Main.java:67: 错误: 需要class, interface或enum
        for(int i = 0; i <= n; i++)
        ^
0_0_22789034_22299\Main.java:67: 错误: 需要class, interface或enum
        for(int i = 0; i <= n; i++)
                       ^
0_0_22789034_22299\Main.java:67: 错误: 需要class, interface或enum
        for(int i = 0; i <= n; i++)
                               ^
0_0_22789034_22299\Main.java:70: 错误: 需要class, interface或enum
            for(int j = 1; j <= m; j++)
            ^
0_0_22789034_22299\Main.java:70: 错误: 需要class, interface或enum
            for(int j = 1; j <= m; j++)
                           ^
0_0_22789034_22299\Main.java:70: 错误: 需要class, interface或enum
            for(int j = 1; j <= m; j++)
                                   ^
0_0_22789034_22299\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_22789034_22299\Main.java:76: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
        ^
0_0_22789034_22299\Main.java:76: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                       ^
0_0_22789034_22299\Main.java:76: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                               ^
0_0_22789034_22299\Main.java:78: 错误: 需要class, interface或enum
            for(int j = 1; j <= m; j++)
                           ^
0_0_22789034_22299\Main.java:78: 错误: 需要class, interface或enum
            for(int j = 1; j <= m; j++)
                                   ^
0_0_22789034_22299\Main.java:81: 错误: 需要class, interface或enum
                dp[i][j] = min(dp[i][j], dp[i - 1][j - 1] + depth[a[i]]);
                ^
0_0_22789034_22299\Main.java:82: 错误: 需要class, interface或enum
                if(i > 1) dp[i][j] = min(dp[i][j], dp[i - 2][j - 1] + depth[get(a[i], a[i - 1], n)]);
                ^
0_0_22789034_22299\Main.java:83: 错误: 需要class, interface或enum
            }
            ^
0_0_22789034_22299\Main.java:86: 错误: 需要class, interface或enum
    }
    ^
0_0_22789034_22299\Main.java:88: 错误: 需要class, interface或enum
}
^
67 个错误


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 09:17:38, Gzip enabled