stones.cpp: In function 'int fun(int)':
stones.cpp:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < v1.size(); i++){
~~^~~~~~~~~~~
stones.cpp:25:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < v1.size(); i++){
~~^~~~~~~~~~~
stones.cpp:37:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < v1.size(); i++){
~~^~~~~~~~~~~
stones.cpp:38:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(in < v2.size() && v1[i] > v2[in] ){
~~~^~~~~~~~~~~
stones.cpp:44:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < v2.size(); i++){
~~^~~~~~~~~~~
stones.cpp:45:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(in < v1.size() && v1[in] < v2[i]){
~~~^~~~~~~~~~~
stones.cpp: In function 'int main()':
stones.cpp:62:11: warning: unused variable 'ans1' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~
stones.cpp:62:20: warning: unused variable 'ans2' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~