Problem | workload |
---|---|
User | JustKitkat |
Submission Time | 2025-01-17 23:24:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
workload.cpp: In function ‘long long int dp(long long int, long long int)’:
workload.cpp:64:51: error: ‘last’ was not declared in this scope
64 | if(memo[pos][left]!=-1)return memo[pos][left][last];
| ^~~~
workload.cpp:67:17: error: ‘n’ was not declared in this scope; did you mean ‘no’?
67 | int res=(dp(n-1,k)+dp(n,k-n))%MOD;
| ^
| no
workload.cpp:67:21: error: ‘k’ was not declared in this scope
67 | int res=(dp(n-1,k)+dp(n,k-n))%MOD;
| ^
workload.cpp: In function ‘void solve(long long int)’:
workload.cpp:75:19: error: too many arguments to function ‘long long int dp(long long int, long long int)’
75 | cout<<dp(n,k,0);
| ^
workload.cpp:63:5: note: declared here
63 | int dp(int pos, int left){
| ^~