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_36754677_6223\Main.java:2: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_36754677_6223\Main.java:2: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_36754677_6223\Main.java:4: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_36754677_6223\Main.java:5: 错误: 需要class, interface或enum
typedef unsigned long long ULL;
^
0_0_36754677_6223\Main.java:6: 错误: 需要class, interface或enum
typedef pair<int,int> pii;
^
0_0_36754677_6223\Main.java:7: 错误: 需要class, interface或enum
typedef tuple<int,int,int> tu;
^
0_0_36754677_6223\Main.java:8: 错误: 需要class, interface或enum
const int N = 5e4 + 5;
^
0_0_36754677_6223\Main.java:9: 错误: 需要class, interface或enum
const int M = 2e4 + 5;
^
0_0_36754677_6223\Main.java:10: 错误: 需要class, interface或enum
const double eps = 1e-10;
^
0_0_36754677_6223\Main.java:11: 错误: 需要class, interface或enum
const LL Mod = 1e9 + 7;
^
0_0_36754677_6223\Main.java:12: 错误: 非法字符: '#'
#define pi acos(-1)
^
0_0_36754677_6223\Main.java:12: 错误: 需要class, interface或enum
#define pi acos(-1)
        ^
0_0_36754677_6223\Main.java:13: 错误: 非法字符: '#'
#define INF 1e9
^
0_0_36754677_6223\Main.java:14: 错误: 非法字符: '#'
#define dbg(ax) cout << "now this num is " << ax << endl;
^
0_0_36754677_6223\Main.java:15: 错误: 需要class, interface或enum
inline int read() {
^
0_0_36754677_6223\Main.java:16: 错误: 需要class, interface或enum
    int f = 1;int x = 0;char c = getchar();
              ^
0_0_36754677_6223\Main.java:16: 错误: 需要class, interface或enum
    int f = 1;int x = 0;char c = getchar();
                        ^
0_0_36754677_6223\Main.java:17: 错误: 需要class, interface或enum
    while(c < '0' || c > '9') {if(c == '-') f = -1;c = getchar();}
    ^
0_0_36754677_6223\Main.java:17: 错误: 需要class, interface或enum
    while(c < '0' || c > '9') {if(c == '-') f = -1;c = getchar();}
                                                   ^
0_0_36754677_6223\Main.java:17: 错误: 需要class, interface或enum
    while(c < '0' || c > '9') {if(c == '-') f = -1;c = getchar();}
                                                                 ^
0_0_36754677_6223\Main.java:18: 错误: 需要class, interface或enum
    while(c >= '0' && c <= '9'){x = (x<<1)+(x<<3)+(c^48);c = getchar();}
                                                         ^
0_0_36754677_6223\Main.java:18: 错误: 需要class, interface或enum
    while(c >= '0' && c <= '9'){x = (x<<1)+(x<<3)+(c^48);c = getchar();}
                                                                       ^
0_0_36754677_6223\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_36754677_6223\Main.java:21: 错误: 需要class, interface或enum
inline long long ADD(long long x,long long y) {return (x + y) % Mod;}
                                                                    ^
0_0_36754677_6223\Main.java:22: 错误: 需要class, interface或enum
inline long long DEC(long long x,long long y) {return (x - y + Mod) % Mod;}
                                                                          ^
0_0_36754677_6223\Main.java:23: 错误: 需要class, interface或enum
inline long long MUL(long long x,long long y) {return x * y % Mod;}
                                                                  ^
0_0_36754677_6223\Main.java:26: 错误: 需要class, interface或enum
vector<int> G[N];
^
0_0_36754677_6223\Main.java:27: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_36754677_6223\Main.java:28: 错误: 需要class, interface或enum
int sz[N],rt,mx,ssz;
^
0_0_36754677_6223\Main.java:29: 错误: 需要class, interface或enum
LL f[1 << 10],ans = 0;
^
0_0_36754677_6223\Main.java:30: 错误: 需要class, interface或enum
vector<int> vec;
^
0_0_36754677_6223\Main.java:31: 错误: 需要class, interface或enum
void dfs(int u,int fa) {
^
0_0_36754677_6223\Main.java:33: 错误: 需要class, interface或enum
    int son = 0;
    ^
0_0_36754677_6223\Main.java:34: 错误: 需要class, interface或enum
    for(auto v : G[u]) {
    ^
0_0_36754677_6223\Main.java:36: 错误: 需要class, interface或enum
        dfs(v,u);
        ^
0_0_36754677_6223\Main.java:37: 错误: 需要class, interface或enum
        sz[u] += sz[v];
        ^
0_0_36754677_6223\Main.java:38: 错误: 需要class, interface或enum
        son = max(son,sz[v]);
        ^
0_0_36754677_6223\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_36754677_6223\Main.java:41: 错误: 需要class, interface或enum
    if(son < mx) mx = son,rt = u;
    ^
0_0_36754677_6223\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_36754677_6223\Main.java:45: 错误: 需要class, interface或enum
    vec.push_back(S | (1 << a[u]));
    ^
0_0_36754677_6223\Main.java:46: 错误: 需要class, interface或enum
    for(auto v : G[u]) {
    ^
0_0_36754677_6223\Main.java:48: 错误: 需要class, interface或enum
        Find(v,u,S | (1 << a[u])); 
        ^
0_0_36754677_6223\Main.java:49: 错误: 需要class, interface或enum
    }
    ^
0_0_36754677_6223\Main.java:53: 错误: 需要class, interface或enum
    vec.clear();
    ^
0_0_36754677_6223\Main.java:54: 错误: 需要class, interface或enum
    Find(u,0,state);
    ^
0_0_36754677_6223\Main.java:55: 错误: 需要class, interface或enum
    for(int i = 0;i < k;++i) {
    ^
0_0_36754677_6223\Main.java:55: 错误: 需要class, interface或enum
    for(int i = 0;i < k;++i) {
                  ^
0_0_36754677_6223\Main.java:55: 错误: 需要class, interface或enum
    for(int i = 0;i < k;++i) {
                        ^
0_0_36754677_6223\Main.java:56: 错误: 需要class, interface或enum
        for(int j = (1 << k) - 1;j >= 0;--j) {
                                 ^
0_0_36754677_6223\Main.java:56: 错误: 需要class, interface或enum
        for(int j = (1 << k) - 1;j >= 0;--j) {
                                        ^
0_0_36754677_6223\Main.java:58: 错误: 需要class, interface或enum
            if(g == 0) f[j] += f[j | (1 << i)];
            ^
0_0_36754677_6223\Main.java:59: 错误: 需要class, interface或enum
        }
        ^
0_0_36754677_6223\Main.java:62: 错误: 需要class, interface或enum
    int g = (1 << k) - 1;
    ^
0_0_36754677_6223\Main.java:63: 错误: 需要class, interface或enum
    for(auto v : vec) {
    ^
0_0_36754677_6223\Main.java:65: 错误: 需要class, interface或enum
    }
    ^
0_0_36754677_6223\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_36754677_6223\Main.java:70: 错误: 需要class, interface或enum
    vis[u] = 1;
    ^
0_0_36754677_6223\Main.java:71: 错误: 需要class, interface或enum
    for(auto v : G[u]) {
    ^
0_0_36754677_6223\Main.java:73: 错误: 需要class, interface或enum
        ans -= cal2(v,1 << a[u]);
        ^
0_0_36754677_6223\Main.java:74: 错误: 需要class, interface或enum
        ssz = sz[v];
        ^
0_0_36754677_6223\Main.java:75: 错误: 需要class, interface或enum
        mx = INF;
        ^
0_0_36754677_6223\Main.java:76: 错误: 需要class, interface或enum
        dfs(v,0);
        ^
0_0_36754677_6223\Main.java:77: 错误: 需要class, interface或enum
        divide(rt);
        ^
0_0_36754677_6223\Main.java:78: 错误: 需要class, interface或enum
    }
    ^
0_0_36754677_6223\Main.java:82: 错误: 需要class, interface或enum
		for(int i = 1;i <= n;++i) a[i] = read(),vis[i] = 0,G[i].clear(),a[i]--;
		              ^
0_0_36754677_6223\Main.java:82: 错误: 需要class, interface或enum
		for(int i = 1;i <= n;++i) a[i] = read(),vis[i] = 0,G[i].clear(),a[i]--;
		                     ^
0_0_36754677_6223\Main.java:83: 错误: 需要class, interface或enum
        for(int i = 1;i < n;++i) {
        ^
0_0_36754677_6223\Main.java:83: 错误: 需要class, interface或enum
        for(int i = 1;i < n;++i) {
                      ^
0_0_36754677_6223\Main.java:83: 错误: 需要class, interface或enum
        for(int i = 1;i < n;++i) {
                            ^
0_0_36754677_6223\Main.java:84: 错误: 需要class, interface或enum
            int u,v;u = read(),v = read();
                    ^
0_0_36754677_6223\Main.java:85: 错误: 需要class, interface或enum
            G[u].push_back(v);
            ^
0_0_36754677_6223\Main.java:86: 错误: 需要class, interface或enum
            G[v].push_back(u);
            ^
0_0_36754677_6223\Main.java:87: 错误: 需要class, interface或enum
        }
        ^
0_0_36754677_6223\Main.java:89: 错误: 需要class, interface或enum
        dfs(1,0);
        ^
0_0_36754677_6223\Main.java:90: 错误: 需要class, interface或enum
        divide(rt);
        ^
0_0_36754677_6223\Main.java:91: 错误: 需要class, interface或enum
        printf("%lld\n",ans);
        ^
0_0_36754677_6223\Main.java:92: 错误: 需要class, interface或enum
	}
	^
0_0_36754677_6223\Main.java:97: 错误: 需要class, interface或enum
    return 0;
    ^
0_0_36754677_6223\Main.java:98: 错误: 需要class, interface或enum
}
^
80 个错误


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-22 00:04:07, Gzip enabled