0_0_26161173_7650.cpp:3:1: error: 'set' does not name a type
set<int> s;
^
0_0_26161173_7650.cpp: In function 'void init()':
0_0_26161173_7650.cpp:7:9: error: 'Set' was not declared in this scope
Set[i] = i;
^
0_0_26161173_7650.cpp: In function 'int FindSet(int)':
0_0_26161173_7650.cpp:12:13: error: 'Set' was not declared in this scope
if(x != Set[x])
^
0_0_26161173_7650.cpp:16:12: error: 'Set' was not declared in this scope
return Set[x];
^
0_0_26161173_7650.cpp: In function 'bool UnionSet(int, int)':
0_0_26161173_7650.cpp:26:9: error: 'Set' was not declared in this scope
Set[y] = x;
^
0_0_26161173_7650.cpp: In function 'void print()':
0_0_26161173_7650.cpp:33:17: error: 's' was not declared in this scope
if (flag && s.size() == sum + 1)
^
0_0_26161173_7650.cpp:34:23: error: 'printf' was not declared in this scope
printf("Yes\n");
^
0_0_26161173_7650.cpp:36:22: error: 'printf' was not declared in this scope
printf("No\n");
^
0_0_26161173_7650.cpp:37:5: error: 's' was not declared in this scope
s.clear();
^
0_0_26161173_7650.cpp: In function 'int main()':
0_0_26161173_7650.cpp:47:27: error: 'scanf' was not declared in this scope
scanf("%d%d",&a,&b);
^
0_0_26161173_7650.cpp:57:9: error: 's' was not declared in this scope
s.insert(a);
^
|