perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:12:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
12 | if (k & (1ll << i) != 0) {
| ~~~~~~~~~~~^~~~
perm.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 1; i < bytes.size(); i++) {
| ~~^~~~~~~~~~~~~~
perm.cpp:22:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int j = 0; j < ans.size(); j++) {
| ~~^~~~~~~~~~~~
perm.cpp:29:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for (int j = 0; j < ans.size(); j++) {
| ~~^~~~~~~~~~~~