hidden.cpp: In function 'int dfs(int, int)':
hidden.cpp:43:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
hidden.cpp: In function 'bool my_isSubsequence(std::vector<int>, std::vector<int>)':
hidden.cpp:50:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < theRealAnswer.size () && it != theRealAnswer[i]) i++;
~~^~~~~~~~~~~~~~~~~~~~~~~
hidden.cpp:51:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == theRealAnswer.size ()) return 0;
~~^~~~~~~~~~~~~~~~~~~~~~~~
hidden.cpp: In function 'std::vector<int> findSequence(int)':
hidden.cpp:80:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
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++)
~^~~~~~~~~~~~