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:115:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
115 | 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;
| ^
del13.cpp:91:13: warning: unused variable 'con' [-Wunused-variable]
91 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0;
| ^~~
del13.cpp:91:17: warning: unused variable 'xx' [-Wunused-variable]
91 | int i,j,con,xx=0,ok=0,last,tt=0,ff=0;
| ^~
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:107:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
107 | scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~
del13.cpp:125:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
125 | for(i=0;i<M;i++) scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~