Problem | hedgehogcrimes_easy |
---|---|
User | wasdplant |
Submission Time | 2025-03-15 18:06:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hedgehogcrimes_easy.cpp: In function ‘int32_t main()’:
hedgehogcrimes_easy.cpp:17:40: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
17 | if (i < K) dp[i] = power(2, i, mod); // Use modular exponentiation
| ^~~
| modf
hedgehogcrimes_easy.cpp:17:28: error: ‘power’ was not declared in this scope
17 | if (i < K) dp[i] = power(2, i, mod); // Use modular exponentiation
| ^~~~~
hedgehogcrimes_easy.cpp:18:32: error: found ‘:’ in nested-name-specifier, expected ‘::’
18 | else dp[i] = sum(dp[i-k:i]) % mod;
| ^
| ::
hedgehogcrimes_easy.cpp:18:31: error: ‘k’ has not been declared
18 | else dp[i] = sum(dp[i-k:i]) % mod;
| ^
hedgehogcrimes_easy.cpp:18:22: