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:71:17: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
71 | int ans[6];
| ^~~
scales.cpp:164:14: warning: 'best.query::type' may be used uninitialized in this function [-Wmaybe-uninitialized]
164 | else if(best.type == 2)
| ^~
scales.cpp:138:34: warning: 'best.query::a' may be used uninitialized in this function [-Wmaybe-uninitialized]
138 | int ret = getHeaviest(best.a + 1, best.b + 1, best.c + 1);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scales.cpp:138:34: warning: 'best.query::b' may be used uninitialized in this function [-Wmaybe-uninitialized]
scales.cpp:138:34: warning: 'best.query::c' may be used uninitialized in this function [-Wmaybe-uninitialized]
scales.cpp:187:90: warning: 'best.query::d' may be used uninitialized in this function [-Wmaybe-uninitialized]
187 | if(ty == 1 && fi_next_light(nw[best.a], nw[best.b], nw[best.c], nw[best.d]) == nw[best.a]) next.pb(nw);
| ^
scales.cpp:188:28: warning: 'ty' may be used uninitialized in this function [-Wmaybe-uninitialized]
188 | if(ty == 2 && fi_next_light(nw[best.a], nw[best.b], nw[best.c], nw[best.d]) == nw[best.b]) next.pb(nw);
scales.cpp:174:28: warning: 'ty' may be used uninitialized in this function [-Wmaybe-uninitialized]
174 | if(ty == 2 && fi_median(nw[best.a], nw[best.b], nw[best.c]) == nw[best.b]) next.pb(nw);
scales.cpp:161:28: warning: 'ty' may be used uninitialized in this function [-Wmaybe-uninitialized]
161 | if(ty == 3 && min({nw[best.a], nw[best.b], nw[best.c]}) == nw[best.c]) next.pb(nw);
scales.cpp:147:28: warning: 'ty' may be used uninitialized in this function [-Wmaybe-uninitialized]
147 | if(ty == 3 && max({nw[best.a], nw[best.b], nw[best.c]}) == nw[best.c]) next.pb(nw);