hidden.cpp: In function 'std::vector<int> findSequence(int)':
hidden.cpp:51:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E1.size(); k++) E1[k] = false;
~~^~~~~~~~~~~
hidden.cpp:52:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E2.size(); k++) E2[k] = false;
~~^~~~~~~~~~~
hidden.cpp:55:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E1.size(); k++) { if (rand() % (cl.size() + cr.size()) < KOSUU) { E1[k] = true; cnt++; } }
~~^~~~~~~~~~~
hidden.cpp:55:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E1.size(); k++) { if (rand() % (cl.size() + cr.size()) < KOSUU) { E1[k] = true; cnt++; } }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
hidden.cpp:56:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E2.size(); k++) { if (rand() % (cl.size() + cr.size()) < KOSUU) { E2[k] = true; cnt++; } }
~~^~~~~~~~~~~
hidden.cpp:56:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E2.size(); k++) { if (rand() % (cl.size() + cr.size()) < KOSUU) { E2[k] = true; cnt++; } }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
hidden.cpp:61:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E1.size(); k++) { if (E1[k] == true) B.push_back(cl[k]); }
~~^~~~~~~~~~~
hidden.cpp:63:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < E2.size(); k++) { if (E2[k] == true) B.push_back(cr[k]); }
~~^~~~~~~~~~~
grader.cpp: In function 'int main()':
grader.cpp:28:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
fprintf (fifo_out, "%d\n", ans.size ());
~~~~~~~~~~~^
grader.cpp:29:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<ans.size () && i < N; i++)
~^~~~~~~~~~~~