perm.cpp: In function 'long long int count_increasing(const std::vector<int>&)':
perm.cpp:13:27: error: 'MX' was not declared in this scope
13 | dp[x+1] = min(dp[x+1],MX+1);
| ^~
perm.cpp:19:24: error: 'MX' was not declared in this scope
19 | result = min(result,MX+1);
| ^~
perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:43:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int j=mid; j<cur.size(); j++) now.push_back(cur[j]);
| ~^~~~~~~~~~~
perm.cpp:50:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int j=lb; j<cur.size(); j++) now.push_back(cur[j]);
| ~^~~~~~~~~~~