Problem | selfdefence |
---|---|
User | PlayVoltz |
Submission Time | 2024-06-27 14:29:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
selfdefence.cpp: In function ‘int32_t main()’:
selfdefence.cpp:46:2: error: ‘dp’ was not declared in this scope; did you mean ‘mp’?
46 | dp[1][1][0]=dp[1][1][1]=diag[1][1][0]=diag[1][1][1]=psum[1][1][0]=psum[1][1][1]=1;
| ^~
| mp
selfdefence.cpp:51:20: error: invalid types ‘long long int[long long int]’ for array subscript
51 | int p=max(b[i-1], i-m+1)-1, p2=b[i-1]-1;
| ^
selfdefence.cpp:53:14: error: ‘p2’ was not declared in this scope; did you mean ‘p’?
53 | if (j>=p-p2+1)a=(a+diag[p][j-1][1]-diag[p2][j-(p-p2)-1][1]+MOD)%MOD;
| ^~
| p
selfdefence.cpp:57:20: error: invalid types ‘long long int[long long int]’ for array subscript
57 | int p=max(a[i-1], i-m+1)-1, p2=a[i-1]-1;
| ^
selfdefence.cpp:59:14: error: ‘p2’ was not declared in this scope; did you mean ‘p’?
59 | if (j>=p-p2+1)b=(b+diag[p][j-1][0]