0_0_30015966_31063.cpp:101:11: error: redefinition of 'const int MaxN'
const int MaxN = 1e2 + 5;
^
0_0_30015966_31063.cpp:28:11: note: 'const int MaxN' previously defined here
const int MaxN = 2e5;
^
0_0_30015966_31063.cpp:105:11: error: conflicting declaration 'int S [200000]'
int S[MaxN], R[MaxN];
^
0_0_30015966_31063.cpp:30:10: note: previous declaration as 'std::set<int> S'
set<int> S;
^
0_0_30015966_31063.cpp:106:13: error: conflicting declaration 'int ans [200000]'
int ans[MaxN];
^
0_0_30015966_31063.cpp:29:5: note: previous declaration as 'int ans [200005]'
int ans[MaxN + 5];
^
0_0_30015966_31063.cpp:115:18: error: overflow in constant expression
}edge[MaxN * MaxN];
^
0_0_30015966_31063.cpp:115:18: error: overflow in array dimension
0_0_30015966_31063.cpp: In function 'void init(int)':
0_0_30015966_31063.cpp:119:4: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
S[i] = i;
^
0_0_30015966_31063.cpp: In function 'int find(int)':
0_0_30015966_31063.cpp:134:6: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
if(S[x] != x)
^
0_0_30015966_31063.cpp:135:11: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
return S[x] = find(S[x]);
^
0_0_30015966_31063.cpp:135:23: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
return S[x] = find(S[x]);
^
0_0_30015966_31063.cpp:136:10: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
return S[x];
^
0_0_30015966_31063.cpp: In function 'void Union(int, int)':
0_0_30015966_31063.cpp:143:4: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
S[f2] = f1;
^
0_0_30015966_31063.cpp:147:4: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
S[f1] = f2;
^
0_0_30015966_31063.cpp: In function 'int main()':
0_0_30015966_31063.cpp:166:5: error: redefinition of 'int main()'
int main(){
^
0_0_30015966_31063.cpp:57:5: note: 'int main()' previously defined here
int main(){
^
|