politicaldevelopment.cpp: In function 'int main()':
politicaldevelopment.cpp:38:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<chd.size(); j++) if(i&(1<<j)) V.push_back(chd[j]);
~^~~~~~~~~~~
politicaldevelopment.cpp:40:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<V.size(); j++) for(k=j+1; k<V.size(); k++) if(!binary_search(adj[V[j]].begin(), adj[V[j]].end(), V[k])) flag=false;
~^~~~~~~~~
politicaldevelopment.cpp:40:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<V.size(); j++) for(k=j+1; k<V.size(); k++) if(!binary_search(adj[V[j]].begin(), adj[V[j]].end(), V[k])) flag=false;
~^~~~~~~~~
politicaldevelopment.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &K);
~~~~~^~~~~~~~~~~~~~~~
politicaldevelopment.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &s);
~~~~~^~~~~~~~~~
politicaldevelopment.cpp:22:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
while(s--) { int t; scanf("%d", &t); adj[i].push_back(t+1); }
~~~~~^~~~~~~~~~