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_16650421_25393\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_16650421_25393\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_16650421_25393\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_16650421_25393\Main.java:3: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_16650421_25393\Main.java:4: 错误: 非法字符: '#'
#include<vector>
^
0_0_16650421_25393\Main.java:6: 错误: 需要class, interface或enum
const int maxn=222222;
^
0_0_16650421_25393\Main.java:7: 错误: 需要class, interface或enum
const int mod=1e9+7;
^
0_0_16650421_25393\Main.java:8: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_16650421_25393\Main.java:9: 错误: 需要class, interface或enum
ll ans[maxn],sum[maxn];
^
0_0_16650421_25393\Main.java:10: 错误: 需要class, interface或enum
vector<int>v[maxn];
^
0_0_16650421_25393\Main.java:11: 错误: 需要class, interface或enum
void dfs(int fa,int k)
^
0_0_16650421_25393\Main.java:14: 错误: 需要class, interface或enum
    ans[k]=1;
    ^
0_0_16650421_25393\Main.java:15: 错误: 需要class, interface或enum
    int n=v[k].size();
    ^
0_0_16650421_25393\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i<n;i++)
    ^
0_0_16650421_25393\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i<n;i++)
                ^
0_0_16650421_25393\Main.java:16: 错误: 需要class, interface或enum
    for(int i=0;i<n;i++)
                    ^
0_0_16650421_25393\Main.java:19: 错误: 需要class, interface或enum
        if(u!=fa)
        ^
0_0_16650421_25393\Main.java:22: 错误: 需要class, interface或enum
            ans[k]*=(sum[u]+1);
            ^
0_0_16650421_25393\Main.java:23: 错误: 需要class, interface或enum
            ans[k]%=mod;
            ^
0_0_16650421_25393\Main.java:24: 错误: 需要class, interface或enum
            ans[k]+=sum[k]*ans[u];
            ^
0_0_16650421_25393\Main.java:25: 错误: 需要class, interface或enum
            ans[k]%=mod;
            ^
0_0_16650421_25393\Main.java:26: 错误: 需要class, interface或enum
            sum[k]*=(sum[u]+1);
            ^
0_0_16650421_25393\Main.java:27: 错误: 需要class, interface或enum
            sum[k]%=mod;
            ^
0_0_16650421_25393\Main.java:28: 错误: 需要class, interface或enum
        }
        ^
0_0_16650421_25393\Main.java:34: 错误: 需要class, interface或enum
    while(scanf("%d",&T)!=EOF)
    ^
0_0_16650421_25393\Main.java:38: 错误: 需要class, interface或enum
        scanf("%d",&n);
        ^
0_0_16650421_25393\Main.java:39: 错误: 需要class, interface或enum
        memset(ans,0,sizeof(ans));
        ^
0_0_16650421_25393\Main.java:40: 错误: 需要class, interface或enum
        memset(sum,0,sizeof(sum));
        ^
0_0_16650421_25393\Main.java:41: 错误: 需要class, interface或enum
        int a;
        ^
0_0_16650421_25393\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_16650421_25393\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_16650421_25393\Main.java:42: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_16650421_25393\Main.java:44: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++)
        ^
0_0_16650421_25393\Main.java:44: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++)
                    ^
0_0_16650421_25393\Main.java:44: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++)
                         ^
0_0_16650421_25393\Main.java:47: 错误: 需要class, interface或enum
            v[i].push_back(a);
            ^
0_0_16650421_25393\Main.java:48: 错误: 需要class, interface或enum
            v[a].push_back(i);
            ^
0_0_16650421_25393\Main.java:49: 错误: 需要class, interface或enum
        }
        ^
0_0_16650421_25393\Main.java:51: 错误: 需要class, interface或enum
        ll res=0;
        ^
0_0_16650421_25393\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_16650421_25393\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_16650421_25393\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_16650421_25393\Main.java:55: 错误: 需要class, interface或enum
            res%=mod;
            ^
0_0_16650421_25393\Main.java:56: 错误: 需要class, interface或enum
        }
        ^
0_0_16650421_25393\Main.java:58: 错误: 需要class, interface或enum
    }
    ^
0_0_16650421_25393\Main.java:60: 错误: 需要class, interface或enum
}
^
46 个错误


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-25 22:45:19, Gzip enabled