stove.cpp: In function 'int main()':
stove.cpp:25:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<V.size() && i<K; i++) ans-=V[i];
~^~~~~~~~~
stove.cpp:14:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
stove.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &K); K--;
~~~~~^~~~~~~~~~~~~~~~
stove.cpp:17:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%d", &T[i]);
~~~~~^~~~~~~~~~~~~