0_0_26928099_7189.cpp:2:20: error: expected ']' before ';' token
#define MAX 1000002;
^
0_0_26928099_7189.cpp:3:7: note: in expansion of macro 'MAX'
int a[MAX],parent[MAX],big[MAX];
^
0_0_26928099_7189.cpp:3:10: error: expected unqualified-id before ']' token
int a[MAX],parent[MAX],big[MAX];
^
0_0_26928099_7189.cpp:3:22: error: expected unqualified-id before ']' token
int a[MAX],parent[MAX],big[MAX];
^
0_0_26928099_7189.cpp:3:31: error: expected unqualified-id before ']' token
int a[MAX],parent[MAX],big[MAX];
^
0_0_26928099_7189.cpp: In function 'int find(int)':
0_0_26928099_7189.cpp:6:8: error: 'parent' was not declared in this scope
if(parent[x]!=x)
^
0_0_26928099_7189.cpp:8:12: error: 'parent' was not declared in this scope
return parent[x];
^
0_0_26928099_7189.cpp: In function 'int main()':
0_0_26928099_7189.cpp:21:17: error: 'parent' was not declared in this scope
parent[j]=j;
^
0_0_26928099_7189.cpp:22:17: error: 'big' was not declared in this scope
big[j]=1;
^
0_0_26928099_7189.cpp:26:31: error: 'a' was not declared in this scope
{ scanf("%d%d",&a[i],&a[i+1]);
^
0_0_26928099_7189.cpp:31:21: error: 'parent' was not declared in this scope
parent[a[i+1]]=a[i];
^
0_0_26928099_7189.cpp:32:21: error: 'big' was not declared in this scope
big[a[i]]=big[a[i]]+big[a[i+1]];
^
|