0_0_6299732_22977\Main.java:1: illegal character: \35
#include "stdio.h"
^
0_0_6299732_22977\Main.java:3: class, interface, or enum expected
int f[1100000],d[1100000],bj[20];
^
0_0_6299732_22977\Main.java:4: class, interface, or enum expected
int input(int n){
^
0_0_6299732_22977\Main.java:6: class, interface, or enum expected
int i;
^
0_0_6299732_22977\Main.java:7: class, interface, or enum expected
scanf("%s",s);
^
0_0_6299732_22977\Main.java:8: class, interface, or enum expected
if(s[0]=='I'){
^
0_0_6299732_22977\Main.java:10: class, interface, or enum expected
if(sscanf(temp,"%d%d%d",&a,&b,&v)!=3){
^
0_0_6299732_22977\Main.java:12: class, interface, or enum expected
b=n;
^
0_0_6299732_22977\Main.java:14: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:16: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:19: class, interface, or enum expected
for(i=1;i<=q[0];i++)
^
0_0_6299732_22977\Main.java:19: class, interface, or enum expected
for(i=1;i<=q[0];i++)
^
0_0_6299732_22977\Main.java:19: class, interface, or enum expected
for(i=1;i<=q[0];i++)
^
0_0_6299732_22977\Main.java:21: class, interface, or enum expected
return 2;
^
0_0_6299732_22977\Main.java:22: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:26: class, interface, or enum expected
if(i==f[i])
^
0_0_6299732_22977\Main.java:28: class, interface, or enum expected
f[i]=find(f[i]);
^
0_0_6299732_22977\Main.java:29: class, interface, or enum expected
d[i]=d[i]^d[father];
^
0_0_6299732_22977\Main.java:30: class, interface, or enum expected
return f[i];
^
0_0_6299732_22977\Main.java:31: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:34: class, interface, or enum expected
fa=find(a);
^
0_0_6299732_22977\Main.java:35: class, interface, or enum expected
fb=find(b);
^
0_0_6299732_22977\Main.java:36: class, interface, or enum expected
if(fb==n){
^
0_0_6299732_22977\Main.java:38: class, interface, or enum expected
d[fa]=(d[a]^d[b])^v;
^
0_0_6299732_22977\Main.java:39: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:42: class, interface, or enum expected
d[fb]=(d[a]^d[b])^v;
^
0_0_6299732_22977\Main.java:43: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:48: class, interface, or enum expected
while(scanf("%d%d",&n,&Q)!=EOF&&(n||Q)){
^
0_0_6299732_22977\Main.java:50: class, interface, or enum expected
for(i=0;i<=n;i++){
^
0_0_6299732_22977\Main.java:50: class, interface, or enum expected
for(i=0;i<=n;i++){
^
0_0_6299732_22977\Main.java:50: class, interface, or enum expected
for(i=0;i<=n;i++){
^
0_0_6299732_22977\Main.java:52: class, interface, or enum expected
d[i]=0;
^
0_0_6299732_22977\Main.java:53: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:55: class, interface, or enum expected
for(cas=1;cas<=Q;cas++){
^
0_0_6299732_22977\Main.java:55: class, interface, or enum expected
for(cas=1;cas<=Q;cas++){
^
0_0_6299732_22977\Main.java:55: class, interface, or enum expected
for(cas=1;cas<=Q;cas++){
^
0_0_6299732_22977\Main.java:58: class, interface, or enum expected
if(find(a)==find(b)){
^
0_0_6299732_22977\Main.java:61: class, interface, or enum expected
cas++;
^
0_0_6299732_22977\Main.java:62: class, interface, or enum expected
break;
^
0_0_6299732_22977\Main.java:63: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:66: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:69: class, interface, or enum expected
for(i=1;i<=q[0];i++){find(q[i]);bj[i]=0;}
^
0_0_6299732_22977\Main.java:69: class, interface, or enum expected
for(i=1;i<=q[0];i++){find(q[i]);bj[i]=0;}
^
0_0_6299732_22977\Main.java:69: class, interface, or enum expected
for(i=1;i<=q[0];i++){find(q[i]);bj[i]=0;}
^
0_0_6299732_22977\Main.java:69: class, interface, or enum expected
for(i=1;i<=q[0];i++){find(q[i]);bj[i]=0;}
^
0_0_6299732_22977\Main.java:69: class, interface, or enum expected
for(i=1;i<=q[0];i++){find(q[i]);bj[i]=0;}
^
0_0_6299732_22977\Main.java:70: class, interface, or enum expected
for(i=1;i<=q[0];i++){
^
0_0_6299732_22977\Main.java:70: class, interface, or enum expected
for(i=1;i<=q[0];i++){
^
0_0_6299732_22977\Main.java:72: class, interface, or enum expected
bj[i]=1;
^
0_0_6299732_22977\Main.java:73: class, interface, or enum expected
if(f[q[i]]==n)
^
0_0_6299732_22977\Main.java:75: class, interface, or enum expected
else{
^
0_0_6299732_22977\Main.java:76: class, interface, or enum expected
for(j=i+1;j<=q[0];j++)
^
0_0_6299732_22977\Main.java:76: class, interface, or enum expected
for(j=i+1;j<=q[0];j++)
^
0_0_6299732_22977\Main.java:79: class, interface, or enum expected
ans=(ans^d[q[j]]);
^
0_0_6299732_22977\Main.java:80: class, interface, or enum expected
bj[j]=1;
^
0_0_6299732_22977\Main.java:81: class, interface, or enum expected
break;
^
0_0_6299732_22977\Main.java:82: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:85: class, interface, or enum expected
break;
^
0_0_6299732_22977\Main.java:86: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:91: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:94: class, interface, or enum expected
}
^
0_0_6299732_22977\Main.java:96: class, interface, or enum expected
}
|