stove.cpp: In function 'int main()':
stove.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d %d %d", &N, &K, &old);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
stove.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d", &cur);
| ~~~~~^~~~~~~~~~~~
stove.cpp:16:14: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
16 | int ans = l - f + 1, sz = v.size();
| ~~^~~