scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:8:40: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:18: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:33: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:15: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:26: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:12: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:19: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:9: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:12: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:6: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:8:40: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:18: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:33: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:15: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:26: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:12: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:19: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:9: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:12: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:6: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:8:40: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:18: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:33: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:15: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:26: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:12: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:19: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:9: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp:8:12: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
8 | query(int t, int a, int b, int c, int d) : t(t), a(a), b(b), c(c), d(d) {}
| ~~~~^
scales.cpp:9:6: note: shadowed declaration is here
9 | int t, a, b, c, d;
| ^
scales.cpp: In function 'bool make_tree(node*, std::set<int>)':
scales.cpp:59:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<query>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (int i=0; i<q.size(); i++) {
| ~^~~~~~~~~
scales.cpp: In function 'void init(int)':
scales.cpp:70:15: warning: unused parameter 'T' [-Wunused-parameter]
70 | void init(int T) {
| ~~~~^
scales.cpp: In member function 'int query::real()':
scales.cpp:45:2: warning: control reaches end of non-void function [-Wreturn-type]
45 | }
| ^
scales.cpp: In function 'void orderCoins()':
scales.cpp:43:3: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
43 | if (res == b) return 1;
| ^~
scales.cpp:37:7: note: 'res' was declared here
37 | int res;
| ^~~