del13.cpp: In function 'bool f(int, int)':
del13.cpp:57:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 1;
~~~~^~~
del13.cpp:59:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 0;
~~~~^~~
del13.cpp:63:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 1;
~~~~^~~
del13.cpp:67:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 1;
~~~~^~~
del13.cpp:71:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 1;
~~~~^~~
del13.cpp:73:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ret = 0;
~~~~^~~
del13.cpp: In function 'void solve()':
del13.cpp:111:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<last.size();i++) printf("%d ",last[i]);
~^~~~~~~~~~~~
del13.cpp:78:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&b,&a);
~~~~~^~~~~~~~~~~~~~~
del13.cpp:79:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=a;i++) scanf("%d",&loc[i]);
~~~~~^~~~~~~~~~~~~~
del13.cpp: In function 'int main()':
del13.cpp:122:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~