bitaro.cpp: In function 'int find(int, std::vector<int>&)':
bitaro.cpp:21:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | 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:131: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]
131 | if (dist[i].size() < BLOCK_SIZE)
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
bitaro.cpp:112:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
112 | scanf("%d %d %d", &N, &M, &Q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:123:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
123 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:142:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
142 | scanf("%d %d", &T, &Y);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:147:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
147 | scanf("%d", &c);
| ~~~~~^~~~~~~~~~