del13.cpp: In function 'void Find(int)':
del13.cpp:53:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(i=1;i<tt.size()-1;i++)
| ~^~~~~~~~~~~~
del13.cpp: In function 'void FF(int)':
del13.cpp:62:9: warning: unused variable 'i' [-Wunused-variable]
62 | int i;
| ^
del13.cpp: In function 'int main()':
del13.cpp:97:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
97 | printf("%d\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
del13.cpp:69:11: warning: unused variable 'j' [-Wunused-variable]
69 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0,where;
| ^
del13.cpp:69:13: warning: unused variable 'con' [-Wunused-variable]
69 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0,where;
| ^~~
del13.cpp:69:17: warning: unused variable 'xx' [-Wunused-variable]
69 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0,where;
| ^~
del13.cpp:69:27: warning: unused variable 'last' [-Wunused-variable]
69 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0,where;
| ^~~~
del13.cpp:69:42: warning: unused variable 'where' [-Wunused-variable]
69 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0,where;
| ^~~~~
del13.cpp:71:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
71 | scanf("%d",&T);
| ~~~~~^~~~~~~~~
del13.cpp:74:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
74 | scanf("%d %d",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~
del13.cpp:89:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
89 | scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~
del13.cpp:107:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
107 | for(i=1;i<=M;i++) scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~