sprinkler.cpp: In function 'int main()':
sprinkler.cpp:30:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d%lld", &N, &L);
| ~~~~~^~~~~~~~~~~~~~~~~~
sprinkler.cpp:34:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | scanf("%d%d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~
sprinkler.cpp:39:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | for(int i=1; i<=N; i++) scanf("%lld", &H[i]);
| ~~~~~^~~~~~~~~~~~~~~
sprinkler.cpp:45:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d", &Q);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:49:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~
sprinkler.cpp:53:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | scanf("%d%d%d", &x, &d, &w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
sprinkler.cpp:68:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~