sprinkler.cpp: In function 'int main()':
sprinkler.cpp:38:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf(" %lld",&mod);
| ~~~~~^~~~~~~~~~~~~~
sprinkler.cpp:43:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | scanf(" %d",&u);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:44:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf(" %d",&v);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:50:42: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | for(int i = 1; i <= N; i++) scanf(" %d",&lst[i]);
| ~~~~~^~~~~~~~~~~~~~~
sprinkler.cpp:58:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
58 | scanf(" %d",&Q);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:63:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | scanf(" %d",&h);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:68:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | scanf(" %d",&X);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:69:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
69 | scanf(" %d",&D);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:70:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | scanf(" %d",&W);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:85:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | scanf(" %d",&X);
| ~~~~~^~~~~~~~~~