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_31063240_25272\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_31063240_25272\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_31063240_25272\Main.java:3: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_31063240_25272\Main.java:4: 错误: 需要class, interface或enum
typedef unsigned long long ull;
^
0_0_31063240_25272\Main.java:5: 错误: 需要class, interface或enum
template <typename T>
^
0_0_31063240_25272\Main.java:6: 错误: 需要class, interface或enum
void out(T x) { cout << x << endl; }
                                   ^
0_0_31063240_25272\Main.java:7: 错误: 需要class, interface或enum
ll fast_pow(ll a, ll b, ll p) {ll c = 1; while(b) { if(b & 1) c = c * a % p; a = a * a % p; b >>= 1;} return c;}
                                         ^
0_0_31063240_25272\Main.java:7: 错误: 需要class, interface或enum
ll fast_pow(ll a, ll b, ll p) {ll c = 1; while(b) { if(b & 1) c = c * a % p; a = a * a % p; b >>= 1;} return c;}
                                                                             ^
0_0_31063240_25272\Main.java:7: 错误: 需要class, interface或enum
ll fast_pow(ll a, ll b, ll p) {ll c = 1; while(b) { if(b & 1) c = c * a % p; a = a * a % p; b >>= 1;} return c;}
                                                                                            ^
0_0_31063240_25272\Main.java:7: 错误: 需要class, interface或enum
ll fast_pow(ll a, ll b, ll p) {ll c = 1; while(b) { if(b & 1) c = c * a % p; a = a * a % p; b >>= 1;} return c;}
                                                                                                    ^
0_0_31063240_25272\Main.java:7: 错误: 需要class, interface或enum
ll fast_pow(ll a, ll b, ll p) {ll c = 1; while(b) { if(b & 1) c = c * a % p; a = a * a % p; b >>= 1;} return c;}
                                                                                                               ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                    ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                           ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                                     ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                                                                       ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                                                                                      ^
0_0_31063240_25272\Main.java:8: 错误: 需要class, interface或enum
ll exgcd(ll a, ll b, ll &x, ll &y) { if(!b) {x = 1; y = 0; return a; } ll gcd = exgcd(b, a % b, y, x); y-= a / b * x; return gcd; }
                                                                                                                                  ^
0_0_31063240_25272\Main.java:10: 错误: 需要class, interface或enum
struct node 
^
0_0_31063240_25272\Main.java:13: 错误: 需要class, interface或enum
}edge[N << 1];
^
0_0_31063240_25272\Main.java:14: 错误: 需要class, interface或enum
int dp[N], head[N], tot;
^
0_0_31063240_25272\Main.java:15: 错误: 需要class, interface或enum
int n, k, ans;
^
0_0_31063240_25272\Main.java:16: 错误: 需要class, interface或enum
void init()
^
0_0_31063240_25272\Main.java:19: 错误: 需要class, interface或enum
    tot = ans = 0;
    ^
0_0_31063240_25272\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_31063240_25272\Main.java:24: 错误: 需要class, interface或enum
    edge[tot].next = head[u];
    ^
0_0_31063240_25272\Main.java:25: 错误: 需要class, interface或enum
    head[u] = tot ++;
    ^
0_0_31063240_25272\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_31063240_25272\Main.java:30: 错误: 需要class, interface或enum
    for(int i = head[u]; i != -1; i = edge[i].next)
    ^
0_0_31063240_25272\Main.java:30: 错误: 需要class, interface或enum
    for(int i = head[u]; i != -1; i = edge[i].next)
                         ^
0_0_31063240_25272\Main.java:30: 错误: 需要class, interface或enum
    for(int i = head[u]; i != -1; i = edge[i].next)
                                  ^
0_0_31063240_25272\Main.java:33: 错误: 需要class, interface或enum
        if(to == fa)
        ^
0_0_31063240_25272\Main.java:35: 错误: 需要class, interface或enum
        dfs(to, u);
        ^
0_0_31063240_25272\Main.java:36: 错误: 需要class, interface或enum
        dp[u] += dp[to];
        ^
0_0_31063240_25272\Main.java:37: 错误: 需要class, interface或enum
    }
    ^
0_0_31063240_25272\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_31063240_25272\Main.java:44: 错误: 需要class, interface或enum
    int t;
    ^
0_0_31063240_25272\Main.java:45: 错误: 需要class, interface或enum
    cin >> t;
    ^
0_0_31063240_25272\Main.java:46: 错误: 需要class, interface或enum
    while(t --)
    ^
0_0_31063240_25272\Main.java:49: 错误: 需要class, interface或enum
        cin >> n >> k;
        ^
0_0_31063240_25272\Main.java:50: 错误: 需要class, interface或enum
        int ma = 0;
        ^
0_0_31063240_25272\Main.java:51: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i ++)
        ^
0_0_31063240_25272\Main.java:51: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i ++)
                       ^
0_0_31063240_25272\Main.java:51: 错误: 需要class, interface或enum
        for(int i = 1; i < n; i ++)
                              ^
0_0_31063240_25272\Main.java:54: 错误: 需要class, interface或enum
            cin >> u >> v;
            ^
0_0_31063240_25272\Main.java:55: 错误: 需要class, interface或enum
            add(u, v);
            ^
0_0_31063240_25272\Main.java:56: 错误: 需要class, interface或enum
            add(v, u);
            ^
0_0_31063240_25272\Main.java:57: 错误: 需要class, interface或enum
        }
        ^
0_0_31063240_25272\Main.java:59: 错误: 需要class, interface或enum
        cout << ans << endl;
        ^
0_0_31063240_25272\Main.java:60: 错误: 需要class, interface或enum
    }
    ^
49 个错误


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-30 07:55:59, Gzip enabled