bitaro.cpp: In function 'std::vector<std::pair<int, int> > merge(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)':
bitaro.cpp:30:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < a.size() && r < b.size()) {
~~^~~~~~~~~~
bitaro.cpp:30:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < a.size() && r < b.size()) {
~~^~~~~~~~~~
bitaro.cpp:34:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < a.size()) ret.emplace_back(a[l++]);
~~^~~~~~~~~~
bitaro.cpp:35:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(r < b.size()) ret.emplace_back(b[r++]);
~~^~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:58:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:60:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:66:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &t, &y);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:69:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~