Problem | sequence_apio |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-16 00:57:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sequence_apio.cpp: In function ‘int32_t main()’:
sequence_apio.cpp:67:2: error: expected initializer before ‘for’
67 | for (int i=1; i<=n; ++i)if (dp[i][k%2]>maxnum)maxnum=dp[i][k%2], num=i;
| ^~~
sequence_apio.cpp:67:16: error: ‘i’ was not declared in this scope
67 | for (int i=1; i<=n; ++i)if (dp[i][k%2]>maxnum)maxnum=dp[i][k%2], num=i;
| ^
sequence_apio.cpp:70:9: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
70 | while (num){
| ^~~
| enum