0_0_36330816_30794.cpp:7:1: error: expected initializer before 'int'
int s[30],degree[30];
^
0_0_36330816_30794.cpp: In function 'int find_set(int)':
0_0_36330816_30794.cpp:9:8: error: 's' was not declared in this scope
if(x==s[x]) return x;
^
0_0_36330816_30794.cpp: In function 'void union_set(int, int)':
0_0_36330816_30794.cpp:15:11: error: 's' was not declared in this scope
if(x!=y) s[x]=s[y];
^
0_0_36330816_30794.cpp: In function 'int main()':
0_0_36330816_30794.cpp:23:4: error: 's' was not declared in this scope
s[i]=i;
^
0_0_36330816_30794.cpp:26:9: error: 's' was not declared in this scope
cin>>s;
^
0_0_36330816_30794.cpp:29:4: error: 'degree' was not declared in this scope
degree[x]++;
^
0_0_36330816_30794.cpp:35:15: error: 'degree' was not declared in this scope
if(degree(i)%2==1) cnt++;
^
|