stove.cpp: In function 'int main()':
stove.cpp:9:38: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
9 | vector<int>arr(n); for(size_t i=0;i<n;i++) cin>>arr[i];
| ~^~
stove.cpp:11:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
11 | for(size_t i=0;i<n-1;i++) {
| ~^~~~
stove.cpp:16:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
16 | for(size_t i=0;i<k-1;i++) res-=diff[i];
| ~^~~~