sprinkler.cpp: In function 'int main()':
sprinkler.cpp:35:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf("%d%lld",&n,&l);
| ~~~~~^~~~~~~~~~~~~~~~
sprinkler.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~
sprinkler.cpp:42:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d",&h[i]);
| ~~~~~^~~~~~~~~~~~
sprinkler.cpp:52:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
sprinkler.cpp:55:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%d%d",&t,&x);
| ~~~~~^~~~~~~~~~~~~~
sprinkler.cpp:57:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%d%d",&d,&w);
| ~~~~~^~~~~~~~~~~~~~