scales.cpp: In constructor 'Tree::Tree(int, int, int, int, int)':
scales.cpp:173:43: warning: declaration of 'd' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~~~~
scales.cpp:170:22: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:36: warning: declaration of 'c' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:19: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:29: warning: declaration of 'b' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:16: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:22: warning: declaration of 'a' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:13: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:14: warning: declaration of 'ty' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~
scales.cpp:170:9: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^~
scales.cpp: In constructor 'Tree::Tree(int, int, int, int, int)':
scales.cpp:173:43: warning: declaration of 'd' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~~~~
scales.cpp:170:22: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:36: warning: declaration of 'c' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:19: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:29: warning: declaration of 'b' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:16: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:22: warning: declaration of 'a' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:13: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:14: warning: declaration of 'ty' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~
scales.cpp:170:9: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^~
scales.cpp: In constructor 'Tree::Tree(int, int, int, int, int)':
scales.cpp:173:43: warning: declaration of 'd' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~~~~
scales.cpp:170:22: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:36: warning: declaration of 'c' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:19: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:29: warning: declaration of 'b' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:16: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:22: warning: declaration of 'a' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:170:13: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^
scales.cpp:173:14: warning: declaration of 'ty' shadows a member of 'Tree' [-Wshadow]
173 | Tree(int ty, int a, int b, int c, int d = 0) : ty(ty), a(a), b(b), c(c), d(d) {}
| ~~~~^~
scales.cpp:170:9: note: shadowed declaration is here
170 | int ty, a, b, c, d;
| ^~
scales.cpp: In function 'bool build(Tree*&, std::vector<int>, int)':
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:20: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:5: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:34: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:20: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:52: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:183:34: note: in expansion of macro 'FOR'
183 | FOR (ty, 1, 3) FOR (i, 1, 6) FOR (j, i + 1, 6) FOR (k, j + 1, 6) {
| ^~~
scales.cpp:193:56: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
193 | if (max({vi.size(), vj.size(), vk.size()}) > lim) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:19: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:5: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:45: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:19: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:75: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:203:45: note: in expansion of macro 'FOR'
203 | FOR (d, 1, 6) FOR (i, 1, 6) if (i != d) FOR (j, i + 1, 6) if (j != d) FOR (k, j + 1, 6) if (k != d) {
| ^~~
scales.cpp:212:56: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
212 | if (max({vi.size(), vj.size(), vk.size()}) > lim) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
scales.cpp: In function 'void init(int)':
scales.cpp:21:36: warning: declaration of 'I' shadows a previous local [-Wshadow]
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:231:9: note: in expansion of macro 'FOR'
231 | FOR (j, 0, 5) pos[i][a[j]] = j;
| ^~~
scales.cpp:21:36: note: shadowed declaration is here
21 | #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
| ^
scales.cpp:229:5: note: in expansion of macro 'FOR'
229 | FOR (i, 0, MAX - 1) {
| ^~~
scales.cpp:226:15: warning: unused parameter 'T' [-Wunused-parameter]
226 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:264:56: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized]
264 | cur = (result == a ? cur->nxt[0] : result == b ? cur->nxt[1] : cur->nxt[2]);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~