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:53:24: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
53 | 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:57:5: note: in expansion of macro 'ff'
57 | 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:58:5: note: in expansion of macro 'ff'
58 | 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:59:5: note: in expansion of macro 'ff'
59 | 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:86:5: note: in expansion of macro 'ff'
86 | 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 - 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:92:5: note: in expansion of macro 'ff'
92 | 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:97:5: note: in expansion of macro 'ff'
97 | 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:113:5: note: in expansion of macro 'ff'
113 | 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:117:5: note: in expansion of macro 'ff'
117 | ff(i,0,l - 1){
| ^~