stove.cpp:7:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main() {
| ^
stove.cpp: In function 'int main()':
stove.cpp:8:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | int N, K; scanf("%lld %lld", &N, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
stove.cpp:10:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | for (int i = 1; i <= N; i++) scanf("%lld", &lst[i]);
| ~~~~~^~~~~~~~~~~~~~~~~