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_14017999_18538\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_14017999_18538\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_14017999_18538\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_14017999_18538\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_14017999_18538\Main.java:4: 错误: 非法字符: '#'
#include <vector>
^
0_0_14017999_18538\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_14017999_18538\Main.java:7: 错误: 需要class, interface或enum
const int maxn=1010;
^
0_0_14017999_18538\Main.java:8: 错误: 需要class, interface或enum
const int inf=0x3fffffff;
^
0_0_14017999_18538\Main.java:9: 错误: 需要class, interface或enum
vector<int> g[maxn];
^
0_0_14017999_18538\Main.java:10: 错误: 需要class, interface或enum
int dp[maxn][210],m,tmp[maxn];
^
0_0_14017999_18538\Main.java:11: 错误: 需要class, interface或enum
vector<pair<int,int> > tower[maxn];
^
0_0_14017999_18538\Main.java:12: 错误: 需要class, interface或enum
void dfs(int u,int fa){
^
0_0_14017999_18538\Main.java:14: 错误: 需要class, interface或enum
    bool ok=0;
    ^
0_0_14017999_18538\Main.java:15: 错误: 需要class, interface或enum
    if(sz==1&&g[u][0]==fa) ok=1;  // ok=1 这是叶子节点
    ^
0_0_14017999_18538\Main.java:16: 错误: 需要class, interface或enum
    if(!ok)  // 非叶子节点
    ^
0_0_14017999_18538\Main.java:18: 错误: 需要class, interface或enum
        for(int i=0;i<=m;i++) dp[u][i]=inf; // 当第一次是要赋值为inf
                    ^
0_0_14017999_18538\Main.java:18: 错误: 需要class, interface或enum
        for(int i=0;i<=m;i++) dp[u][i]=inf; // 当第一次是要赋值为inf
                         ^
0_0_14017999_18538\Main.java:19: 错误: 需要class, interface或enum
        for(int rr=0;rr<sz;rr++){
        ^
0_0_14017999_18538\Main.java:19: 错误: 需要class, interface或enum
        for(int rr=0;rr<sz;rr++){
                     ^
0_0_14017999_18538\Main.java:19: 错误: 需要class, interface或enum
        for(int rr=0;rr<sz;rr++){
                           ^
0_0_14017999_18538\Main.java:21: 错误: 需要class, interface或enum
            if(v==fa) continue;
            ^
0_0_14017999_18538\Main.java:22: 错误: 需要class, interface或enum
            dfs(v,u);
            ^
0_0_14017999_18538\Main.java:23: 错误: 需要class, interface或enum
            for(int i=m;i>=0;i--){
            ^
0_0_14017999_18538\Main.java:23: 错误: 需要class, interface或enum
            for(int i=m;i>=0;i--){
                        ^
0_0_14017999_18538\Main.java:23: 错误: 需要class, interface或enum
            for(int i=m;i>=0;i--){
                             ^
0_0_14017999_18538\Main.java:25: 错误: 需要class, interface或enum
                for(int j=0;j<=i;j++)t=max(t,min(dp[u][i-j],dp[v][j]));
                ^
0_0_14017999_18538\Main.java:25: 错误: 需要class, interface或enum
                for(int j=0;j<=i;j++)t=max(t,min(dp[u][i-j],dp[v][j]));
                            ^
0_0_14017999_18538\Main.java:25: 错误: 需要class, interface或enum
                for(int j=0;j<=i;j++)t=max(t,min(dp[u][i-j],dp[v][j]));
                                 ^
0_0_14017999_18538\Main.java:26: 错误: 需要class, interface或enum
                dp[u][i]=t;
                ^
0_0_14017999_18538\Main.java:27: 错误: 需要class, interface或enum
            }
            ^
0_0_14017999_18538\Main.java:30: 错误: 需要class, interface或enum
    for(int i=0;i<=m;i++) tmp[i]=dp[u][i];  // 保存先前的dp值
                ^
0_0_14017999_18538\Main.java:30: 错误: 需要class, interface或enum
    for(int i=0;i<=m;i++) tmp[i]=dp[u][i];  // 保存先前的dp值
                     ^
0_0_14017999_18538\Main.java:31: 错误: 需要class, interface或enum
    int k=tower[u].size();
    ^
0_0_14017999_18538\Main.java:32: 错误: 需要class, interface或enum
    for(int i=m;i>=0;i--)
    ^
0_0_14017999_18538\Main.java:32: 错误: 需要class, interface或enum
    for(int i=m;i>=0;i--)
                ^
0_0_14017999_18538\Main.java:32: 错误: 需要class, interface或enum
    for(int i=m;i>=0;i--)
                     ^
0_0_14017999_18538\Main.java:33: 错误: 需要class, interface或enum
        for(int j=0;j<k;j++)
                    ^
0_0_14017999_18538\Main.java:33: 错误: 需要class, interface或enum
        for(int j=0;j<k;j++)
                        ^
0_0_14017999_18538\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_14017999_18538\Main.java:39: 错误: 需要class, interface或enum
    scanf("%d",&T);
    ^
0_0_14017999_18538\Main.java:40: 错误: 需要class, interface或enum
    while(T--){
    ^
0_0_14017999_18538\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++) tower[i].clear(),g[i].clear();
        ^
0_0_14017999_18538\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++) tower[i].clear(),g[i].clear();
                    ^
0_0_14017999_18538\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++) tower[i].clear(),g[i].clear();
                         ^
0_0_14017999_18538\Main.java:43: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++){
        ^
0_0_14017999_18538\Main.java:43: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++){
                    ^
0_0_14017999_18538\Main.java:43: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++){
                        ^
0_0_14017999_18538\Main.java:45: 错误: 需要class, interface或enum
            g[a].push_back(b);
            ^
0_0_14017999_18538\Main.java:46: 错误: 需要class, interface或enum
            g[b].push_back(a);
            ^
0_0_14017999_18538\Main.java:47: 错误: 需要class, interface或enum
        }
        ^
0_0_14017999_18538\Main.java:49: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++){
        ^
0_0_14017999_18538\Main.java:49: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++){
                    ^
0_0_14017999_18538\Main.java:49: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++){
                         ^
0_0_14017999_18538\Main.java:51: 错误: 需要class, interface或enum
            for(int j=0;j<k;j++){
            ^
0_0_14017999_18538\Main.java:51: 错误: 需要class, interface或enum
            for(int j=0;j<k;j++){
                        ^
0_0_14017999_18538\Main.java:51: 错误: 需要class, interface或enum
            for(int j=0;j<k;j++){
                            ^
0_0_14017999_18538\Main.java:53: 错误: 需要class, interface或enum
                tower[i].push_back(make_pair(a,b));
                ^
0_0_14017999_18538\Main.java:54: 错误: 需要class, interface或enum
            }
            ^
0_0_14017999_18538\Main.java:57: 错误: 需要class, interface或enum
        dfs(1,-1);
        ^
0_0_14017999_18538\Main.java:58: 错误: 需要class, interface或enum
        printf("%d\n",dp[1][m]);
        ^
0_0_14017999_18538\Main.java:59: 错误: 需要class, interface或enum
    }
    ^
0_0_14017999_18538\Main.java:61: 错误: 需要class, interface或enum
}
^
62 个错误


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-02 08:55:05, Gzip enabled