sorting.cpp: In function 'int count_cycles(std::vector<int>&, int)':
sorting.cpp:7:7: error: 'ssize' was not declared in this scope; did you mean 'dysize'?
7 | N = ssize(V); int ans = 0;
| ^~~~~
| dysize
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:22:21: warning: range-based 'for' loops with initializer only available with '-std=c++2a' or '-std=gnu++2a'
22 | for (int i = 0; auto &e : V) e = S[i++];
| ^~~~
sorting.cpp:30:19: warning: range-based 'for' loops with initializer only available with '-std=c++2a' or '-std=gnu++2a'
30 | for (int i = 0; auto &e : V) e = S[i++];
| ^~~~