sorting.cpp: In function 'bool moze(int, int*, int, int*, int*, int*, int*, int)':
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:71:5: note: in expansion of macro 'ff'
71 | ff(i,0,n) p[i]=S[i];
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:72:5: note: in expansion of macro 'ff'
72 | ff(i,0,okle) swap(p[X[i]],p[Y[i]]);
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #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,n) nesto.dsu(i,p[i]);
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:79:5: note: in expansion of macro 'ff'
79 | ff(i,0,n) if (nesto.up[i]<0) komp++;
| ^~
sorting.cpp:68:30: warning: unused parameter 'm' [-Wunused-parameter]
68 | bool moze(int n, int* S, int m, int *X, int* Y, int* P, int* Q, int okle)
| ~~~~^
sorting.cpp:68:54: warning: unused parameter 'P' [-Wunused-parameter]
68 | bool moze(int n, int* S, int m, int *X, int* Y, int* P, int* Q, int okle)
| ~~~~~^
sorting.cpp:68:62: warning: unused parameter 'Q' [-Wunused-parameter]
68 | bool moze(int n, int* S, int m, int *X, int* Y, int* P, int* Q, int okle)
| ~~~~~^
sorting.cpp: In function 'void konstruktuj(int, int*, int, int*, int*, int*, int*, int)':
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #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) p[i]=S[i];
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:92:2: note: in expansion of macro 'ff'
92 | ff(i,0,okle) swap(p[X[i]],p[Y[i]]);
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:93:2: note: in expansion of macro 'ff'
93 | ff(i,0,n) if(!vi[i]) while(!vi[i]) {vi[i]=true; if(!vi[p[i]]) {z[0].push_back(i); z[1].push_back(p[i]);} i=p[i];}
| ^~
sorting.cpp:13:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
13 | #define ff(i,a,b) for (int (i) = (a); (i) < (b); (i)++)
| ^
sorting.cpp:94:2: note: in expansion of macro 'ff'
94 | ff(i,0,n) gdep[S[i]]=i;
| ^~
sorting.cpp:100:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | if(i>=z[0].size()) P[i]=Q[i]=0;
| ~^~~~~~~~~~~~~
sorting.cpp:86:37: warning: unused parameter 'm' [-Wunused-parameter]
86 | void konstruktuj(int n, int *S, int m, int *X, int *Y, int *P, int *Q, int okle)
| ~~~~^