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:38:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos1 < a.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:47:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos2 < b.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:57:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < ret.size(); i++) used[ ret[i].second ] = 0;
~~^~~~~~~~~~~~
bitaro.cpp: In function 'void solve1()':
bitaro.cpp:68:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < radj[u].size(); i++) {
~~^~~~~~~~~~~~~~~~
bitaro.cpp: In function 'void solve2(int)':
bitaro.cpp:79:26: 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:118:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < dp1[t].size(); j++) if(!chk[ dp1[t][j].second ]) {
~~^~~~~~~~~~~~~~~
bitaro.cpp:88: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:91: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:100: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:105:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c[j]);
~~~~~^~~~~~~~~~~~~