blocks.cpp: In function 'int main()':
blocks.cpp:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j = 1 ; j <= k ; j++)
^~~
blocks.cpp:32:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
printf("%d\n" , dp[n][k]);
^~~~~~
blocks.cpp:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d" , &n , &k);
~~~~~^~~~~~~~~~~~~~~~~~
blocks.cpp:11:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1 ; i<=n ;i ++) scanf("%d" , &v[i]);
~~~~~^~~~~~~~~~~~~~