friends.cpp: In function 'int main()':
friends.cpp:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < G[u].size(); ++i) {
~~^~~~~~~~~~~~~
friends.cpp:48:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < G[v].size(); ++j) {foundu |= (G[v][j] == u);}
~~^~~~~~~~~~~~~
friends.cpp: In function 'std::vector<int> freshNeighbors(int)':
friends.cpp:89:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < G[v].size(); ++i) {
~~^~~~~~~~~~~~~
friends.cpp: In function 'bool mainBranch(int, int)':
friends.cpp:108:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(groupSize > p || cutSize > q || groupSize + cutSize + undecidedStack.size() > p+q) return false;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
friends.cpp: In function 'bool branchWithFirstVertexOut(int, int)':
friends.cpp:117:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < G[v].size(); ++i) {cutSize += in[G[v][i]];}
~~^~~~~~~~~~~~~
friends.cpp: In function 'bool branchWithFirstVertexInGroup(int, int)':
friends.cpp:132:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < nv.size(); ++i) {pushUndecided(nv[i]);}
~~^~~~~~~~~~~
friends.cpp:133:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < G[v].size(); ++i) {cutSize += out[G[v][i]];}
~~^~~~~~~~~~~~~
friends.cpp:138:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < nv.size(); ++i) {popUndecided();}
~~^~~~~~~~~~~
friends.cpp: In function 'int main()':
friends.cpp:28:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n, &p, &q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
friends.cpp:35:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mi);
~~~~~^~~~~~~~~~~
friends.cpp:39:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &(G[i][j]));
~~~~~^~~~~~~~~~~~~~~~~~