paths.cpp: In lambda function:
paths.cpp:16:10: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | if(cur == permutation.size() - 1) {
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
paths.cpp: In function 'int main()':
paths.cpp:37:25: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
37 | if(permutation.size() != K) {
| ~~~~~~~~~~~~~~~~~~~^~~~
paths.cpp:39:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i = 0; i < permutation.size(); i ++) permutation[i] = i + 1;
| ~~^~~~~~~~~~~~~~~~~~~~
paths.cpp:42:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int i = 0; i < permutation.size() - 1; i ++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
paths.cpp:11:24: warning: unused variable 'changes' [-Wunused-variable]
11 | int n, m, k, ans = 0, changes = 1;
| ^~~~~~~