fountain.c: In function 'main':
fountain.c:6:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d %d", &n, &q);
| ^~~~~~~~~~~~~~~~~~~~~~
fountain.c:10:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | scanf("%d %d", &d[i], &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
fountain.c:15:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d %d", &q1, &q2);
| ^~~~~~~~~~~~~~~~~~~~~~~~