0_0_32852048_28036.cpp:1:24: error: stray '#' in program
</pre><pre class="cpp">#include<stdio.h>
^
0_0_32852048_28036.cpp:1:1: error: expected unqualified-id before '<' token
</pre><pre class="cpp">#include<stdio.h>
^
0_0_32852048_28036.cpp: In function 'int find(int)':
0_0_32852048_28036.cpp:8:11: error: 'pre' was not declared in this scope
if(x!=pre[x])
^
0_0_32852048_28036.cpp:10:12: error: 'pre' was not declared in this scope
return pre[x];
^
0_0_32852048_28036.cpp: In function 'void init(int)':
0_0_32852048_28036.cpp:17:9: error: 'pre' was not declared in this scope
pre[i]=i;
^
0_0_32852048_28036.cpp:18:9: error: 'num' was not declared in this scope
num[i]=1;
^
0_0_32852048_28036.cpp: In function 'void Union(int, int)':
0_0_32852048_28036.cpp:26:8: error: 'num' was not declared in this scope
if(num[x]>=num[y])
^
0_0_32852048_28036.cpp:28:9: error: 'pre' was not declared in this scope
pre[y]=x;
^
0_0_32852048_28036.cpp:33:9: error: 'pre' was not declared in this scope
pre[x]=y;
^
0_0_32852048_28036.cpp: In function 'int main()':
0_0_32852048_28036.cpp:41:24: error: 'scanf' was not declared in this scope
while(scanf("%d",&T)!=EOF)
^
0_0_32852048_28036.cpp:41:27: error: 'EOF' was not declared in this scope
while(scanf("%d",&T)!=EOF)
^
0_0_32852048_28036.cpp:51:15: error: 'num' was not declared in this scope
if(num[i]>ans)
^
0_0_32852048_28036.cpp:53:26: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|