game.cpp: In member function 'int unionfind::leader(int)':
game.cpp:13:17: warning: unused variable 'bef' [-Wunused-variable]
13 | int bef=tree[pos];
| ^~~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:12:23: warning: 'pos' is used uninitialized in this function [-Wuninitialized]
12 | while(tree[pos]>=0){
| ^
game.cpp:10:13: note: 'pos' was declared here
10 | int pos;
| ^~~
game.cpp:12:23: warning: 'pos' is used uninitialized in this function [-Wuninitialized]
12 | while(tree[pos]>=0){
| ^
game.cpp:10:13: note: 'pos' was declared here
10 | int pos;
| ^~~
game.cpp:12:23: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
12 | while(tree[pos]>=0){
| ^
game.cpp:10:13: note: 'pos' was declared here
10 | int pos;
| ^~~
game.cpp:12:23: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
12 | while(tree[pos]>=0){
| ^
game.cpp:10:13: note: 'pos' was declared here
10 | int pos;
| ^~~
game.cpp:12:23: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
12 | while(tree[pos]>=0){
| ^
game.cpp:10:13: note: 'pos' was declared here
10 | int pos;
| ^~~