vim.cpp: In function 'int main()':
vim.cpp:63:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<K.size(); i++){
~^~~~~~~~~
vim.cpp:65:3: error: 'dnc' was not declared in this scope
dnc(i, 1, i, 1, i);
^~~
vim.cpp:76:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<K.size(); i++) ans = min(ans, dp[K.size() - 1][i]);
~^~~~~~~~~
vim.cpp:78:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", ans + K.size());
~~~~~~~~~~~~~~^
vim.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s", &n, str);
~~~~~^~~~~~~~~~~~~~~~~