0_0_20245642_12801.cpp:24:1: error: 'itn' does not name a type
itn dp[2001][2001];
^
0_0_20245642_12801.cpp: In function 'int main()':
0_0_20245642_12801.cpp:33:13: error: 'dp' was not declared in this scope
memset(dp,0x3f,sizeof(dp));
^
0_0_20245642_12801.cpp:38:37: error: 'val' was not declared in this scope
dp[i][j] = min(dp[i-2][j-1]+(val[i]-val[i-1])*(val[i]-val[i-1]),dp[i-1][j]);
^
0_0_20245642_12801.cpp:41:25: error: 'ednl' was not declared in this scope
cout << dp[n][k] <<ednl;
^
|