sorting.cpp: In function 'bool check(int)':
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:36:5: note: in expansion of macro 'ff'
36 | ff(i,0,n - 1)tmp[i] = a[i];
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:37:5: note: in expansion of macro 'ff'
37 | ff(i,0,t - 1){
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:40:5: note: in expansion of macro 'ff'
40 | ff(i,0,n - 1)poz[tmp[i]] = i;
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:41:5: note: in expansion of macro 'ff'
41 | ff(i,0,n - 1){
| ^~
sorting.cpp:48:24: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
48 | int kol = sols.size();
| ~~~~~~~~~^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:50:5: note: in expansion of macro 'ff'
50 | ff(i,0,n - 1)tmp[i] = a[i];
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:51:5: note: in expansion of macro 'ff'
51 | ff(i,0,n - 1)poz[tmp[i]] = i;
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:52:5: note: in expansion of macro 'ff'
52 | ff(i,0,kol - 1){
| ^~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:78:5: note: in expansion of macro 'ff'
78 | ff(i,0,m - 1){
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:81:5: note: in expansion of macro 'ff'
81 | ff(i,0,n - 1){
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:84:5: note: in expansion of macro 'ff'
84 | ff(i,0,m - 1){
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:89:5: note: in expansion of macro 'ff'
89 | ff(i,0,n - 2){
| ^~
sorting.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:103:5: note: in expansion of macro 'ff'
103 | ff(i,0,m - 1){
| ^~
sorting.cpp: In function 'bool check(int)':
sorting.cpp:35:17: warning: control reaches end of non-void function [-Wreturn-type]
35 | vector<pii> sols;
| ^~~~