hidden.cpp: In function 'bool isSubsequence(std::vector<int>)':
hidden.cpp:35:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (v.size () > maxQ)
~~~~~~~~~~^~~~~~
hidden.cpp:40:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < theRealAnswer.size () && it != theRealAnswer[i]) i ++;
~~^~~~~~~~~~~~~~~~~~~~~~~
hidden.cpp:41:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == theRealAnswer.size ()) return 0;
~~^~~~~~~~~~~~~~~~~~~~~~~~
hidden.cpp: In function 'int main()':
hidden.cpp:101:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<ans.size (); i++)
~^~~~~~~~~~~~
hidden.cpp:87:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n), maxQ = 0;
~~~~~~~~~~~~~~~~^~~~~~~~~~
hidden.cpp:89:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &x), theRealAnswer.push_back (x);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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++)
~^~~~~~~~~~~~
/tmp/ccjWlqdR.o: In function `isSubsequence(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x0): multiple definition of `isSubsequence(std::vector<int, std::allocator<int> >)'
/tmp/ccZ1nlZQ.o:hidden.cpp:(.text+0x0): first defined here
/tmp/ccjWlqdR.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccZ1nlZQ.o:hidden.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status