elephants.cpp: In function 'void przelicz(int)':
elephants.cpp:24:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(l==B[x].size()-1) nxt[x][i]={B[x][i].st+L, 1};
| ~^~~~~~~~~~~~~~~
elephants.cpp: In function 'int update(int, int)':
elephants.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
elephants.cpp:59:3: note: in expansion of macro 'rep'
59 | rep(j, B[l].size()) if(B[l][j].st==T[i]) {
| ^~~
elephants.cpp:60:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int k=j+1; k<B[l].size(); ++k) B[l][k-1]=B[l][k];
| ~^~~~~~~~~~~~
elephants.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
elephants.cpp:70:3: note: in expansion of macro 'rep'
70 | rep(j, B[l].size()) if(B[l][j]<x) tmp.pb(B[l][j]);
| ^~~
elephants.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
elephants.cpp:72:3: note: in expansion of macro 'rep'
72 | rep(j, B[l].size()) if(B[l][j]>x) tmp.pb(B[l][j]);
| ^~~