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:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(v1[i] > v2[in] && in < v2.size()){
~~~^~~~~~~~~~~
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:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(v1[in] < v2[i] && in < v1.size()){
~~~^~~~~~~~~~~
stones.cpp: In function 'int main()':
stones.cpp:63:11: warning: unused variable 'ans1' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~
stones.cpp:63:20: warning: unused variable 'ans2' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~