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