bitaro.cpp: In function 'std::vector<std::pair<int, int> > mrg(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)':
bitaro.cpp:17:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos1 < a.size() && pos2 < b.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:17:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos1 < a.size() && pos2 < b.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:21:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos1 < a.size()) ret.push_back(a[pos1++]);
~~~~~^~~~~~~~~~
bitaro.cpp:22:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos2 < b.size()) ret.push_back(pii(b[pos2].first + 1, b[pos2].second)), pos2++;
~~~~~^~~~~~~~~~
bitaro.cpp: In function 'std::vector<std::pair<int, int> > dp1(int)':
bitaro.cpp:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < radj[u].size(); i++) {
~~^~~~~~~~~~~~~~~~
bitaro.cpp: In function 'int dp2(int)':
bitaro.cpp:50:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < adj[u].size(); i++) {
~~^~~~~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:89:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < tmp.size(); j++) if(!chk[ tmp[j].second ]) {
~~^~~~~~~~~~~~
bitaro.cpp:58:10: 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:61:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int u, v; scanf("%d %d", &u, &v);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:69:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int t, y; scanf("%d %d", &t, &y);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:74:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c[j]);
~~~~~^~~~~~~~~~~~~