stove.cpp: In function 'int main()':
stove.cpp:15:25: warning: unused variable 'cnt' [-Wunused-variable]
15 | int ans = old - f + 1, cnt = 0;
| ^~~
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);
| ~~~~~^~~~~~~~~~~~