stones.cpp: In function 'int main()':
stones.cpp:26:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v1.size(); i ++){
~~^~~~~~~~~~~
stones.cpp:27:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(pos < v2.size() && v2[pos] < v1[i])
~~~~^~~~~~~~~~~
stones.cpp:29:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos >= v2.size()){
~~~~^~~~~~~~~~~~
stones.cpp:41:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v2.size(); i ++){
~~^~~~~~~~~~~
stones.cpp:42:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(pos < v1.size() && v1[pos] < v2[i])
~~~~^~~~~~~~~~~
stones.cpp:44:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos >= v1.size()){
~~~~^~~~~~~~~~~~
stones.cpp:9:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~