sorting.cpp: In function 'bool check(int)':
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #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,n - 1)tmp[i] = a[i];
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:38:5: note: in expansion of macro 'ff'
38 | ff(i,0,t - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #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)poz[tmp[i]] = i;
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:42:5: note: in expansion of macro 'ff'
42 | ff(i,0,n - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:53:5: note: in expansion of macro 'ff'
53 | ff(i,0,n - 1)assert(tmp[i] == i);
| ^~
sorting.cpp:54:24: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
54 | int kol = sols.size();
| ~~~~~~~~~^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:57:5: note: in expansion of macro 'ff'
57 | ff(i,kol,t)sols.pb({0,0});
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:59:5: note: in expansion of macro 'ff'
59 | ff(i,0,n - 1)tmp[i] = a[i];
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:60:5: note: in expansion of macro 'ff'
60 | ff(i,0,n - 1)poz[tmp[i]] = i;
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:61:5: note: in expansion of macro 'ff'
61 | ff(i,0,t - 1){
| ^~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #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,m - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:92:5: note: in expansion of macro 'ff'
92 | ff(i,0,n - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:95:5: note: in expansion of macro 'ff'
95 | ff(i,0,m - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:100:5: note: in expansion of macro 'ff'
100 | ff(i,0,n - 2){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:116:5: note: in expansion of macro 'ff'
116 | ff(i,0,m - 1){
| ^~
sorting.cpp:7:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
7 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
sorting.cpp:120:5: note: in expansion of macro 'ff'
120 | ff(i,0,l - 1){
| ^~