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_30997106_14107\Main.java:1: 错误: 非法字符: '#'
#pragma GCC optimize(2)
^
0_0_30997106_14107\Main.java:1: 错误: 需要class, interface或enum
#pragma GCC optimize(2)
        ^
0_0_30997106_14107\Main.java:2: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_30997106_14107\Main.java:3: 错误: 非法字符: '#'
#include<iostream>
^
0_0_30997106_14107\Main.java:4: 错误: 非法字符: '#'
#include<string.h>
^
0_0_30997106_14107\Main.java:5: 错误: 非法字符: '#'
#include<sstream>
^
0_0_30997106_14107\Main.java:6: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_30997106_14107\Main.java:7: 错误: 非法字符: '#'
#include<iomanip>
^
0_0_30997106_14107\Main.java:8: 错误: 非法字符: '#'
#include<math.h>
^
0_0_30997106_14107\Main.java:9: 错误: 非法字符: '#'
#include<vector>
^
0_0_30997106_14107\Main.java:10: 错误: 非法字符: '#'
#include<stack>
^
0_0_30997106_14107\Main.java:11: 错误: 非法字符: '#'
#include<queue>
^
0_0_30997106_14107\Main.java:12: 错误: 非法字符: '#'
#include<map>
^
0_0_30997106_14107\Main.java:13: 错误: 非法字符: '#'
#include<set>
^
0_0_30997106_14107\Main.java:14: 错误: 非法字符: '#'
#define  mem(a,b) memset(a,b,sizeof(a))
^
0_0_30997106_14107\Main.java:15: 错误: 非法字符: '#'
#define mo 1000000007
^
0_0_30997106_14107\Main.java:16: 错误: 非法字符: '#'
#define inf 0x3f3f3f3f
^
0_0_30997106_14107\Main.java:17: 错误: 非法字符: '#'
#define pi 3.14159265358979323846
^
0_0_30997106_14107\Main.java:18: 错误: 非法字符: '#'
#define e 2.71828182845904523536
^
0_0_30997106_14107\Main.java:21: 错误: 需要class, interface或enum
using namespace std;
^
0_0_30997106_14107\Main.java:23: 错误: 需要class, interface或enum
vector<int>cnm[200500];
^
0_0_30997106_14107\Main.java:24: 错误: 需要class, interface或enum
int d[200005];
^
0_0_30997106_14107\Main.java:25: 错误: 需要class, interface或enum
int vis[200005],mp[200005];
^
0_0_30997106_14107\Main.java:26: 错误: 需要class, interface或enum
int _max,p;
^
0_0_30997106_14107\Main.java:27: 错误: 需要class, interface或enum
int n,k;
^
0_0_30997106_14107\Main.java:28: 错误: 需要class, interface或enum
void dfs(int x,int step,int pre)
^
0_0_30997106_14107\Main.java:33: 错误: 需要class, interface或enum
        p=x;
        ^
0_0_30997106_14107\Main.java:34: 错误: 需要class, interface或enum
    }
    ^
0_0_30997106_14107\Main.java:35: 错误: 需要class, interface或enum
    for(int i=0;i<cnm[x].size();i++)
                ^
0_0_30997106_14107\Main.java:35: 错误: 需要class, interface或enum
    for(int i=0;i<cnm[x].size();i++)
                                ^
0_0_30997106_14107\Main.java:38: 错误: 需要class, interface或enum
        if(y==pre||vis[y])
        ^
0_0_30997106_14107\Main.java:40: 错误: 需要class, interface或enum
        dfs(y,step+1,x);
        ^
0_0_30997106_14107\Main.java:41: 错误: 需要class, interface或enum
    }
    ^
0_0_30997106_14107\Main.java:49: 错误: 需要class, interface或enum
    set<int>s;
    ^
0_0_30997106_14107\Main.java:50: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
    ^
0_0_30997106_14107\Main.java:50: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                ^
0_0_30997106_14107\Main.java:50: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                     ^
0_0_30997106_14107\Main.java:53: 错误: 需要class, interface或enum
        vis[i]=0;
        ^
0_0_30997106_14107\Main.java:54: 错误: 需要class, interface或enum
        mp[i]=0;
        ^
0_0_30997106_14107\Main.java:55: 错误: 需要class, interface或enum
        if(cnm[i].size()==1)
        ^
0_0_30997106_14107\Main.java:57: 错误: 需要class, interface或enum
    }
    ^
0_0_30997106_14107\Main.java:60: 错误: 需要class, interface或enum
        int x=q.front();    q.pop();
                            ^
0_0_30997106_14107\Main.java:61: 错误: 需要class, interface或enum
        mp[x]=0;
        ^
0_0_30997106_14107\Main.java:62: 错误: 需要class, interface或enum
        if(vis[x])
        ^
0_0_30997106_14107\Main.java:64: 错误: 需要class, interface或enum
        vis[x]=1;
        ^
0_0_30997106_14107\Main.java:65: 错误: 需要class, interface或enum
        int y=0;
        ^
0_0_30997106_14107\Main.java:66: 错误: 需要class, interface或enum
        for(int i=0;i<cnm[x].size();i++)
        ^
0_0_30997106_14107\Main.java:66: 错误: 需要class, interface或enum
        for(int i=0;i<cnm[x].size();i++)
                    ^
0_0_30997106_14107\Main.java:66: 错误: 需要class, interface或enum
        for(int i=0;i<cnm[x].size();i++)
                                    ^
0_0_30997106_14107\Main.java:69: 错误: 需要class, interface或enum
            if(vis[y]==0)
            ^
0_0_30997106_14107\Main.java:71: 错误: 需要class, interface或enum
            y=0;
            ^
0_0_30997106_14107\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_30997106_14107\Main.java:75: 错误: 需要class, interface或enum
        d[y]+=d[x];
        ^
0_0_30997106_14107\Main.java:76: 错误: 需要class, interface或enum
        if(d[x]==1)
        ^
0_0_30997106_14107\Main.java:78: 错误: 需要class, interface或enum
        if(d[y]>=k)
        ^
0_0_30997106_14107\Main.java:82: 错误: 需要class, interface或enum
        }
        ^
0_0_30997106_14107\Main.java:85: 错误: 需要class, interface或enum
        q.push(y);
        ^
0_0_30997106_14107\Main.java:86: 错误: 需要class, interface或enum
        mp[y]=1;
        ^
0_0_30997106_14107\Main.java:87: 错误: 需要class, interface或enum
    }
    ^
0_0_30997106_14107\Main.java:93: 错误: 需要class, interface或enum
    cin>>t;
    ^
0_0_30997106_14107\Main.java:94: 错误: 需要class, interface或enum
    while(t--)
    ^
0_0_30997106_14107\Main.java:97: 错误: 需要class, interface或enum
        p=0;
        ^
0_0_30997106_14107\Main.java:98: 错误: 需要class, interface或enum
        scanf("%d%d",&n,&k);
        ^
0_0_30997106_14107\Main.java:99: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_30997106_14107\Main.java:99: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_30997106_14107\Main.java:99: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_30997106_14107\Main.java:101: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
        ^
0_0_30997106_14107\Main.java:101: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
                    ^
0_0_30997106_14107\Main.java:101: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
                        ^
0_0_30997106_14107\Main.java:104: 错误: 需要class, interface或enum
            scanf("%d%d",&x,&y);
            ^
0_0_30997106_14107\Main.java:105: 错误: 需要class, interface或enum
            cnm[x].push_back(y);
            ^
0_0_30997106_14107\Main.java:106: 错误: 需要class, interface或enum
            cnm[y].push_back(x);
            ^
0_0_30997106_14107\Main.java:107: 错误: 需要class, interface或enum
        }
        ^
0_0_30997106_14107\Main.java:109: 错误: 需要class, interface或enum
        int ans=0;
        ^
0_0_30997106_14107\Main.java:110: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_30997106_14107\Main.java:110: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_30997106_14107\Main.java:110: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_30997106_14107\Main.java:113: 错误: 需要class, interface或enum
            if(d[i]!=1&&d[i]<k)
            ^
0_0_30997106_14107\Main.java:116: 错误: 需要class, interface或enum
        }
        ^
0_0_30997106_14107\Main.java:118: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_30997106_14107\Main.java:118: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_30997106_14107\Main.java:123: 错误: 需要class, interface或enum
                break;
                ^
0_0_30997106_14107\Main.java:124: 错误: 需要class, interface或enum
            }
            ^
0_0_30997106_14107\Main.java:127: 错误: 需要class, interface或enum
        int pp=p;
        ^
0_0_30997106_14107\Main.java:128: 错误: 需要class, interface或enum
        dfs(pp,0,0);
        ^
0_0_30997106_14107\Main.java:129: 错误: 需要class, interface或enum
        cout<<_max<<endl;
        ^
0_0_30997106_14107\Main.java:130: 错误: 需要class, interface或enum
    }
    ^
0_0_30997106_14107\Main.java:132: 错误: 需要class, interface或enum
}
^
88 个错误


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