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:65:11: warning: unused variable 'ans1' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~
stones.cpp:65:20: warning: unused variable 'ans2' [-Wunused-variable]
int n,ans1 = 0,ans2 = 0;
^~~~
stones.cpp:61:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stones.in", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
stones.cpp:62:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stones.out", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~