sparklers.cpp: In function 'int main()':
sparklers.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
sparklers.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf(" %d",&K);
| ~~~~~^~~~~~~~~~
sparklers.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf(" %lld",&T);
| ~~~~~^~~~~~~~~~~~
sparklers.cpp:15:42: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | for(int i = 1; i <= N; i++) scanf(" %d",&lst[i]);
| ~~~~~^~~~~~~~~~~~~~~