towns.cpp: In constructor 'node::node(int, int, int)':
towns.cpp:68:32: warning: declaration of 'pre' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:19: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:22: warning: declaration of 'val' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:13: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:14: warning: declaration of 'v' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^
towns.cpp:66:9: note: shadowed declaration is here
66 | int v , val , pre;
| ^
towns.cpp: In constructor 'node::node(int, int, int)':
towns.cpp:68:32: warning: declaration of 'pre' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:19: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:22: warning: declaration of 'val' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:13: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:14: warning: declaration of 'v' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^
towns.cpp:66:9: note: shadowed declaration is here
66 | int v , val , pre;
| ^
towns.cpp: In constructor 'node::node(int, int, int)':
towns.cpp:68:32: warning: declaration of 'pre' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:19: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:22: warning: declaration of 'val' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^~~
towns.cpp:66:13: note: shadowed declaration is here
66 | int v , val , pre;
| ^~~
towns.cpp:68:14: warning: declaration of 'v' shadows a member of 'node' [-Wshadow]
68 | node(int v , int val , int pre): v(v), val(val), pre(pre) {}
| ~~~~^
towns.cpp:66:9: note: shadowed declaration is here
66 | int v , val , pre;
| ^
towns.cpp: In function 'int sub3(int)':
towns.cpp:113:31: warning: unused variable 'cnt' [-Wunused-variable]
113 | int cntu = 1 , cntv = 1 , cnt = 0;
| ^~~