0_0_22818468_15814.cpp: In function 'int main()':
0_0_22818468_15814.cpp:12:13: error: 'dp' was not declared in this scope
dp[i][0] = 0;
^
0_0_22818468_15814.cpp:14:28: error: 'INF' was not declared in this scope
dp[i][j] = INF;
^
0_0_22818468_15814.cpp:19:17: error: 'dp' was not declared in this scope
dp[i][j] = min(dp[i - 1][j], dp[i - 2][j - 1] + (a[i] - a[i - 1]) * (a[i] - a[i - 1]));
^
0_0_22818468_15814.cpp:22:24: error: 'dp' was not declared in this scope
printf("%d\n", dp[n][k]);
^
|