0_0_6201334_1040\Main.java:1: illegal character: \35
#include<stdio.h>
^
0_0_6201334_1040\Main.java:2: illegal character: \35
#include<string.h>
^
0_0_6201334_1040\Main.java:4: class, interface, or enum expected
int find(int x)
^
0_0_6201334_1040\Main.java:7: class, interface, or enum expected
while(tem!=father[tem])tem=father[tem];
^
0_0_6201334_1040\Main.java:8: class, interface, or enum expected
father[x]=tem;
^
0_0_6201334_1040\Main.java:9: class, interface, or enum expected
return tem;
^
0_0_6201334_1040\Main.java:10: class, interface, or enum expected
}
^
0_0_6201334_1040\Main.java:14: class, interface, or enum expected
while(scanf("%d",&n)!=EOF)
^
0_0_6201334_1040\Main.java:17: class, interface, or enum expected
scanf("%d",&m);
^
0_0_6201334_1040\Main.java:18: class, interface, or enum expected
memset(du,0,sizeof(du));
^
0_0_6201334_1040\Main.java:19: class, interface, or enum expected
memset(vis,0,sizeof(vis));
^
0_0_6201334_1040\Main.java:20: class, interface, or enum expected
memset(rank,0,sizeof(rank));
^
0_0_6201334_1040\Main.java:21: class, interface, or enum expected
while(m--)
^
0_0_6201334_1040\Main.java:24: class, interface, or enum expected
if(vis[a]==0){vis[a]=1;father[a]=a;}
^
0_0_6201334_1040\Main.java:24: class, interface, or enum expected
if(vis[a]==0){vis[a]=1;father[a]=a;}
^
0_0_6201334_1040\Main.java:24: class, interface, or enum expected
if(vis[a]==0){vis[a]=1;father[a]=a;}
^
0_0_6201334_1040\Main.java:25: class, interface, or enum expected
if(vis[b]==0){vis[b]=1;father[b]=b;}
^
0_0_6201334_1040\Main.java:25: class, interface, or enum expected
if(vis[b]==0){vis[b]=1;father[b]=b;}
^
0_0_6201334_1040\Main.java:27: class, interface, or enum expected
du[b]++;
^
0_0_6201334_1040\Main.java:28: class, interface, or enum expected
a=find(a);
^
0_0_6201334_1040\Main.java:29: class, interface, or enum expected
b=find(b);
^
0_0_6201334_1040\Main.java:30: class, interface, or enum expected
if(a!=b)
^
0_0_6201334_1040\Main.java:33: class, interface, or enum expected
else
^
0_0_6201334_1040\Main.java:37: class, interface, or enum expected
father[b]=a;
^
0_0_6201334_1040\Main.java:38: class, interface, or enum expected
}
^
0_0_6201334_1040\Main.java:42: class, interface, or enum expected
for(i=2;i<=n;i++)
^
0_0_6201334_1040\Main.java:42: class, interface, or enum expected
for(i=2;i<=n;i++)
^
0_0_6201334_1040\Main.java:42: class, interface, or enum expected
for(i=2;i<=n;i++)
^
0_0_6201334_1040\Main.java:45: class, interface, or enum expected
if(i<=n)
^
0_0_6201334_1040\Main.java:48: class, interface, or enum expected
continue;
^
0_0_6201334_1040\Main.java:49: class, interface, or enum expected
}
^
0_0_6201334_1040\Main.java:50: class, interface, or enum expected
for(i=1;i<=n;i++)
^
0_0_6201334_1040\Main.java:50: class, interface, or enum expected
for(i=1;i<=n;i++)
^
0_0_6201334_1040\Main.java:53: class, interface, or enum expected
if(i<=n)printf("0\n");
^
0_0_6201334_1040\Main.java:54: class, interface, or enum expected
else printf("1\n");
^
0_0_6201334_1040\Main.java:55: class, interface, or enum expected
}
^
0_0_6201334_1040\Main.java:57: class, interface, or enum expected
}
|