cat.cpp: In function 'int main()':
cat.cpp:76:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
76 | printf("%d %d\n",con,ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
cat.cpp:13:24: warning: unused variable 'j' [-Wunused-variable]
13 | int T,x,y,ok=1,N,i,j,con=0,t,tt=0;
| ^
cat.cpp:13:32: warning: variable 't' set but not used [-Wunused-but-set-variable]
13 | int T,x,y,ok=1,N,i,j,con=0,t,tt=0;
| ^
cat.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d",&T);
| ~~~~~^~~~~~~~~
cat.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
cat.cpp:24:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~
cat.cpp:31:17: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | if(N-x+1==y)
| ^~
cat.cpp:31:21: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | if(N-x+1==y)
| ~^~