cat.cpp: In function 'int main()':
cat.cpp:107:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
107 | printf("%d %d\n",ans.size(),ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
cat.cpp:107: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=]
107 | printf("%d %d\n",ans.size(),ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
cat.cpp:15:24: warning: unused variable 'j' [-Wunused-variable]
15 | int T,x,y,ok=1,N,i,j,con=0,t,tt=0;
| ^
cat.cpp:15:32: warning: variable 't' set but not used [-Wunused-but-set-variable]
15 | int T,x,y,ok=1,N,i,j,con=0,t,tt=0;
| ^
cat.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d",&T);
| ~~~~~^~~~~~~~~
cat.cpp:23:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
cat.cpp:26:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~