bitaro.cpp: In function 'int find(int, std::vector<int>&)':
bitaro.cpp:20:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if (p < v.size() && v[p] == i)
| ~~^~~~~~~~~~
bitaro.cpp: In function 'void merge(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)':
bitaro.cpp:66:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | while (p_a < a.size() && p_b < b.size() && ins < BLOCK_SIZE) {
| ~~~~^~~~~~~~~~
bitaro.cpp:66:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | while (p_a < a.size() && p_b < b.size() && ins < BLOCK_SIZE) {
| ~~~~^~~~~~~~~~
bitaro.cpp:86:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | while (p_a < a.size() && ins < BLOCK_SIZE) {
| ~~~~^~~~~~~~~~
bitaro.cpp:94:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while (p_b < b.size() && ins < BLOCK_SIZE) {
| ~~~~^~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:128:28: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
128 | if (dist[i].size() < BLOCK_SIZE)
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
bitaro.cpp:110:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
110 | scanf("%d %d %d", &N, &M, &Q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:120:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
120 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:139:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
139 | scanf("%d %d", &T, &Y);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:144:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
144 | scanf("%d", &c);
| ~~~~~^~~~~~~~~~