teams.cpp: In constructor 'PerSeg::node::node(PerSeg::node*, int, int)':
teams.cpp:22:29: warning: declaration of 'rr' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:15: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp:22:21: warning: declaration of 'll' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:11: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp: In constructor 'PerSeg::node::node(PerSeg::node*, int, int)':
teams.cpp:22:29: warning: declaration of 'rr' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:15: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp:22:21: warning: declaration of 'll' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:11: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp: In constructor 'PerSeg::node::node(PerSeg::node*, int, int)':
teams.cpp:22:29: warning: declaration of 'rr' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:15: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp:22:21: warning: declaration of 'll' shadows a member of 'PerSeg::node' [-Wshadow]
22 | node(node* c, int ll, int rr) {
| ~~~~^~
teams.cpp:32:11: note: shadowed declaration is here
32 | int s, ll, rr;
| ^~
teams.cpp: In function 'void RMQ::init(int, std::vector<int>)':
teams.cpp:119:56: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
119 | st[j][i] = min(st[j - 1][i], st[j - 1][i + (1 << j - 1)]);
| ~~^~~
teams.cpp: In function 'std::ostream& operator<<(std::ostream&, const segment&)':
teams.cpp:134:59: warning: declaration of 'a' shadows a global declaration [-Wshadow]
134 | friend ostream& operator<< (ostream& out, const segment& a) {
| ~~~~~~~~~~~~~~~^
teams.cpp:10:5: note: shadowed declaration is here
10 | int a[N], b[N];
| ^
teams.cpp: In function 'bool query(int, std::vector<int>&)':
teams.cpp:140:6: warning: unused variable 'idx' [-Wunused-variable]
140 | int idx = 0;
| ^~~
teams.cpp:145:6: warning: unused variable 'ccnt' [-Wunused-variable]
145 | int ccnt = 1;
| ^~~~
teams.cpp:139:16: warning: unused parameter 'k' [-Wunused-parameter]
139 | bool query(int k, vector<int>& s){
| ~~~~^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:183:15: warning: declaration of 'N' shadows a global declaration [-Wshadow]
183 | void init(int N, int A[], int B[]) {
| ~~~~^
teams.cpp:8:11: note: shadowed declaration is here
8 | const int N = 5e5 + 11;
| ^