perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:30:10: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'} and 'long long int' [-Wsign-compare]
30 | if(a[it]!=k)it--;
perm.cpp:44:11: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'} and 'long long int' [-Wsign-compare]
44 | if(a[it]!=k)it--;
perm.cpp:27:7: warning: unused variable 'flag' [-Wunused-variable]
27 | bool flag=1;
| ^~~~