sprinkler.cpp: In function 'int main()':
sprinkler.cpp:75:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d %lld",&n,&mod);
| ~~~~~^~~~~~~~~~~~~~~~~~~
sprinkler.cpp:79:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
sprinkler.cpp:84:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%lld",&h[i]);
| ~~~~~^~~~~~~~~~~~~~
sprinkler.cpp:88:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
88 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
sprinkler.cpp:92:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
92 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
sprinkler.cpp:98:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
98 | scanf("%d %d %lld",&x,&d,&w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
sprinkler.cpp:105:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
105 | scanf("%d",&x);
| ~~~~~^~~~~~~~~