sprinkler.cpp: In function 'int main()':
sprinkler.cpp:69:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
69 | freopen("01-04.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
sprinkler.cpp:76:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | scanf("%d %lld",&n,&mod);
| ~~~~~^~~~~~~~~~~~~~~~~~~
sprinkler.cpp:80:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
sprinkler.cpp:85:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | scanf("%lld",&h[i]);
| ~~~~~^~~~~~~~~~~~~~
sprinkler.cpp:89:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
89 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
sprinkler.cpp:93:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
sprinkler.cpp:99:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
99 | scanf("%d %d %lld",&x,&d,&w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
sprinkler.cpp:106:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
106 | scanf("%d",&x);
| ~~~~~^~~~~~~~~