hidden.cpp: In function 'std::vector<int> findSequence(int)':
hidden.cpp:15:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (sequence.size() < max_query_cnt && isSubsequence(sequence)) {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
hidden.cpp:23:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (sequence.size() <= max_query_cnt && isSubsequence(sequence)) {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
hidden.cpp:37:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pref_sequence.size() <= max_query_cnt && isSubsequence(pref_sequence)) {
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
hidden.cpp:40:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (suff_sequence.size() <= max_query_cnt && isSubsequence(suff_sequence)) {
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
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++)
~^~~~~~~~~~~~