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 'bool insert_to(int, int, int)':
bitaro.cpp:65:32: warning: comparison of integer expressions of different signedness: 'std::map<int, int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
65 | if (temp_dist[dest].size() < BLOCK_SIZE) {
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from bitaro.cpp:1:
bitaro.cpp: In function 'int main()':
bitaro.cpp:109:31: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
109 | assert(dist[i].size() <= BLOCK_SIZE);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
bitaro.cpp:84:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%d %d %d", &N, &M, &Q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:95:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
95 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:125:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
125 | scanf("%d %d", &T, &Y);
| ~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:130:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
130 | scanf("%d", &c);
| ~~~~~^~~~~~~~~~