/in/foo.cc: In function 'bool check(int)':
/in/foo.cc:45:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < linker[cur].size(); j ++)
~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ((n / (p + 1)) > party_2.size() || (n / (party_2.size() + 2)) > p)
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:89:71: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ((n / (p + 1)) > party_2.size() || (n / (party_2.size() + 2)) > p)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc:97:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < linker[x].size(); j ++)
~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:105:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d ", party_1.size());
^
/in/foo.cc:106:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < party_1.size(); i ++) printf("%d ", party_1[i]);
~~^~~~~~~~~~~~~~~~
/in/foo.cc:108:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d ", party_2.size());
^
/in/foo.cc:109:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < party_2.size(); i ++) printf("%d ", party_2[i]);
~~^~~~~~~~~~~~~~~~