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:24:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos1 < a.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:28:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ret.size() < SQ && pos2 < b.size()) {
~~~~~^~~~~~~~~~
bitaro.cpp:33: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 'std::vector<std::pair<int, int> > dp1(int)':
bitaro.cpp:44: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:61: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:101: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:69: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:72: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:80: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:85:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c[j]);
~~~~~^~~~~~~~~~~~~