0_0_29744030_25828.cpp:2:9: error: 'N' was not declared in this scope
int f[2*N+M+1];
^
0_0_29744030_25828.cpp:2:11: error: 'M' was not declared in this scope
int f[2*N+M+1];
^
0_0_29744030_25828.cpp:3:11: error: 'N' was not declared in this scope
int vis[2*N+M+1];
^
0_0_29744030_25828.cpp:3:13: error: 'M' was not declared in this scope
int vis[2*N+M+1];
^
0_0_29744030_25828.cpp: In function 'int find_root(int)':
0_0_29744030_25828.cpp:7:11: error: 'f' was not declared in this scope
while(r!=f[r]) r=f[r];
^
0_0_29744030_25828.cpp:10:5: error: 'f' was not declared in this scope
j=f[i];
^
0_0_29744030_25828.cpp: In function 'void merge(int, int)':
0_0_29744030_25828.cpp:23:5: error: 'f' was not declared in this scope
f[B]=A;
^
0_0_29744030_25828.cpp: In function 'int main()':
0_0_29744030_25828.cpp:29:30: error: 'scanf' was not declared in this scope
while(~scanf("%d%d",&n,&m))
^
0_0_29744030_25828.cpp:34:13: error: 'f' was not declared in this scope
f[i]=i+n;
^
0_0_29744030_25828.cpp:38:13: error: 'f' was not declared in this scope
f[i]=i;
^
0_0_29744030_25828.cpp:54:17: error: 'f' was not declared in this scope
f[x]=cont++;
^
0_0_29744030_25828.cpp:58:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_29744030_25828.cpp:58:33: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_29744030_25828.cpp:68:46: error: 'printf' was not declared in this scope
printf("Case #%d: %d\n",++kase,output);
^
|