Problem | sequence_apio |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-16 01:08:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sequence_apio.cpp: In function ‘int main()’:
sequence_apio.cpp:44:35: error: ‘P’ was not declared in this scope
44 | for(int i=1;i<=n;i++)dp[1][i] = (P[n] - P[i])*P[i];
| ^
sequence_apio.cpp:48:23: error: ‘psump’ was not declared in this scope; did you mean ‘psum’?
48 | insert(psum[j-1] + psump[n], -psum[n] * psum[j-1] + dp[1-tmp][j-1], j-1);
| ^~~~~
| psum