game.cpp:12:11: error: expected identifier before '(' token
12 | void union(int u, int v){
| ^
game.cpp:12:12: error: expected unqualified-id before 'int'
12 | void union(int u, int v){
| ^~~
game.cpp:12:12: error: expected ')' before 'int'
12 | void union(int u, int v){
| ~^~~
| )
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:25:37: error: 'n' was not declared in this scope
25 | if(find(u)==find(v) or sz(u)+sz(v)<n){
| ^
game.cpp:26:3: error: expected primary-expression before 'union'
26 | union(u, v);
| ^~~~~