Problem boundedpermutation
User jeongwonho64
Submission Time 2023-06-05 19:04:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boundedpermutation.cpp: In function ‘int main()’:
boundedpermutation.cpp:49:66: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
49 | dp[i] = dp[i-1] + ((negcnt[i] == 0 ? m - 1 : (negcnt[i] - 1) % mod) * ((i - 2 < 0 ? 1 : dp[i-2])))%m;
| ^~~
| modf