Problem workload
User Yizhou
Submission Time 2024-05-25 11:09:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

workload.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘long’
5 | long long dp[maxn][maxn]={0};
| ^~~~
workload.cpp: In function ‘long long int f(long long int, long long int)’:
workload.cpp:14:6: error: ‘dp’ was not declared in this scope
14 | if (dp[n][k]!=-1){
| ^~
workload.cpp:17:9: error: ‘dp’ was not declared in this scope
17 | return dp[n][k]=(f(n,k-n)+f(n-1,k))%mod;
| ^~
workload.cpp: In function ‘int main()’:
workload.cpp:20:9: error: ‘dp’ was not declared in this scope
20 | memset(dp,-1,sizeof(dp));
| ^~