0_0_24089866_13034.cpp:18:9: error: 'MAX_N' was not declared in this scope
int fa[MAX_N];
^
0_0_24089866_13034.cpp: In member function 'void UF::init()':
0_0_24089866_13034.cpp:19:36: error: 'MAX_N' was not declared in this scope
void init() { for (int i = 1; i < MAX_N; i++) fa[i] = i; }
^
0_0_24089866_13034.cpp:19:48: error: 'fa' was not declared in this scope
void init() { for (int i = 1; i < MAX_N; i++) fa[i] = i; }
^
0_0_24089866_13034.cpp: In member function 'int UF::find(int)':
0_0_24089866_13034.cpp:20:27: error: 'fa' was not declared in this scope
int find(int a) { return fa[a] == a ? a : fa[a] = find(fa[a]); }
^
0_0_24089866_13034.cpp: In member function 'void UF::mix(int, int)':
0_0_24089866_13034.cpp:21:27: error: 'fa' was not declared in this scope
void mix(int a, int b) { fa[find(a)] = find(b); }
^
|