0_0_21588048_7188.cpp: In function 'int main()':
0_0_21588048_7188.cpp:7:29: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&k)==2)
^
0_0_21588048_7188.cpp:17:58: error: 'abs' was not declared in this scope
dp[i][j]=dp[i-1][0]+abs(a[i][j]-a[i-1][0]);
^
0_0_21588048_7188.cpp:19:74: error: 'min' was not declared in this scope
dp[i][j]=min(dp[i][j],dp[i-1][x]+abs(a[i][j]-a[i-1][x]));
^
0_0_21588048_7188.cpp:23:51: error: 'min' was not declared in this scope
for(int i=1;i<k;i++)ans=min(ans,dp[n-1][i]);
^
0_0_21588048_7188.cpp:24:26: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|