scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:15:43: warning: declaration of 'type' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^~~~
scales.cpp:13:17: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^~~~
scales.cpp:15:36: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:15: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:29: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:13: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:22: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:11: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:15: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:9: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:15:43: warning: declaration of 'type' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^~~~
scales.cpp:13:17: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^~~~
scales.cpp:15:36: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:15: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:29: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:13: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:22: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:11: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:15: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:9: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:15:43: warning: declaration of 'type' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^~~~
scales.cpp:13:17: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^~~~
scales.cpp:15:36: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:15: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:29: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:13: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:22: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:11: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp:15:15: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
15 | query(int a, int b, int c, int d, int type): a(a), b(b), c(c), d(d), type(type) {};
| ~~~~^
scales.cpp:13:9: note: shadowed declaration is here
13 | int a,b,c,d,type;
| ^
scales.cpp: In function 'void init(int)':
scales.cpp:44:15: warning: unused parameter 'T' [-Wunused-parameter]
44 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:75:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
75 | for(int i = 0; i < 6; i++)
| ^~~
scales.cpp:77:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
77 | answer(ans);
| ^~~~~~
scales.cpp:142:34: warning: 'best.query::a' may be used uninitialized in this function [-Wmaybe-uninitialized]
142 | int ret = getHeaviest(best.a + 1, best.b + 1, best.c + 1) - 1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scales.cpp:142:34: warning: 'best.query::b' may be used uninitialized in this function [-Wmaybe-uninitialized]
scales.cpp:142:34: warning: 'best.query::c' may be used uninitialized in this function [-Wmaybe-uninitialized]
scales.cpp:169:79: warning: 'best.query::d' may be used uninitialized in this function [-Wmaybe-uninitialized]
169 | if(fi_next_light(nw[best.a], nw[best.b], nw[best.c], nw[best.d]) == nw[ret]) next.pb(nw);
| ^
scales.cpp:156:14: warning: 'best.query::type' may be used uninitialized in this function [-Wmaybe-uninitialized]
156 | else if(best.type == 2)
| ^~