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