teams.cpp:13:19: warning: conversion from 'double' to 'int' changes value from '4.4722477570009471e+2' to '447' [-Wfloat-conversion]
13 | const int B = sqrt(mxM);
| ~~~~^~~~~
teams.cpp: In lambda function:
teams.cpp:41:63: warning: declaration of 'b' shadows a global declaration [-Wshadow]
41 | sort(begin(updates), end(updates),[](const pi& a, const pi& b) {
| ~~~~~~~~~~^
teams.cpp:16:13: note: shadowed declaration is here
16 | int a[mxN], b[mxN];
| ^
teams.cpp:41:50: warning: declaration of 'a' shadows a global declaration [-Wshadow]
41 | sort(begin(updates), end(updates),[](const pi& a, const pi& b) {
| ~~~~~~~~~~^
teams.cpp:16:5: note: shadowed declaration is here
16 | int a[mxN], b[mxN];
| ^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:79:31: warning: declaration of 'B' shadows a global declaration [-Wshadow]
79 | void init(int N, int A[], int B[]) {
| ~~~~^~~
teams.cpp:13:11: note: shadowed declaration is here
13 | const int B = sqrt(mxM);
| ^
teams.cpp: In function 'int can(int, int*)':
teams.cpp:90:20: warning: declaration of 'a' shadows a global declaration [-Wshadow]
90 | int can(int m, int a[]) {
| ~~~~^~~
teams.cpp:16:5: note: shadowed declaration is here
16 | int a[mxN], b[mxN];
| ^
teams.cpp: In instantiation of 'void OffBIT2D<T, SZ>::init(V<std::pair<int, int> >) [with T = int; int SZ = 500010; V<std::pair<int, int> > = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >]':
teams.cpp:85:20: required from here
teams.cpp:41:63: warning: declaration of 'b' shadows a global declaration [-Wshadow]
41 | sort(begin(updates), end(updates),[](const pi& a, const pi& b) {
| ~~~~~~~~~~^
teams.cpp:16:13: note: shadowed declaration is here
16 | int a[mxN], b[mxN];
| ^
teams.cpp:41:50: warning: declaration of 'a' shadows a global declaration [-Wshadow]
41 | sort(begin(updates), end(updates),[](const pi& a, const pi& b) {
| ~~~~~~~~~~^
teams.cpp:16:5: note: shadowed declaration is here
16 | int a[mxN], b[mxN];
| ^
teams.cpp: In instantiation of 'int OffBIT2D<T, SZ>::rank_of_y(int, int) [with T = int; int SZ = 500010]':
teams.cpp:62:17: required from 'void OffBIT2D<T, SZ>::upd(int, int, T) [with T = int; int SZ = 500010]'
teams.cpp:85:64: required from here
teams.cpp:34:55: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
34 | return upper_bound(begin(all_y[x]),end(all_y[x]), y)-begin(all_y[x]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~