cat.cpp: In function 'int main()':
cat.cpp:63: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=]
63 | printf("%d %d\n",ans.size(),ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
cat.cpp:63: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=]
63 | printf("%d %d\n",ans.size(),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;
| ^
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:19:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
cat.cpp:20:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | for(i=1;i<=N;i++) scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~