sorting.cpp: In function 'bool check(int)':
sorting.cpp:33:17: warning: declaration of 'x' shadows a global declaration [-Wshadow]
33 | int x = it, y = a[it];
| ^
sorting.cpp:19:5: note: shadowed declaration is here
19 | int x[MN], y[MN];
| ^
sorting.cpp:33:25: warning: declaration of 'y' shadows a global declaration [-Wshadow]
33 | int x = it, y = a[it];
| ^
sorting.cpp:19:12: note: shadowed declaration is here
19 | int x[MN], y[MN];
| ^
sorting.cpp:43:17: warning: declaration of 'x' shadows a global declaration [-Wshadow]
43 | int x = it, y = a[it];
| ^
sorting.cpp:19:5: note: shadowed declaration is here
19 | int x[MN], y[MN];
| ^
sorting.cpp:43:25: warning: declaration of 'y' shadows a global declaration [-Wshadow]
43 | int x = it, y = a[it];
| ^
sorting.cpp:19:12: note: shadowed declaration is here
19 | int x[MN], y[MN];
| ^
sorting.cpp:50:20: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | if (kek.size() <= k)
| ~~~~~~~~~~~^~~~
sorting.cpp:52:23: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
52 | return kek.size() <= k;
| ~~~~~~~~~~~^~~~
sorting.cpp: In function 'void simulate(int)':
sorting.cpp:56:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
56 | while (sw.size() != k)
| ~~~~~~~~~~^~~~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:95:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | for (int i = 0; i < out.size(); i++){
| ~~^~~~~~~~~~~~