fountain.cpp: In function 'int main()':
fountain.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d%d", &N, &Q);
| ~~~~~^~~~~~~~~~~~~~~~
fountain.cpp:11:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | for(int j=1; j <= N; j++) scanf("%d%d", &d[j], &v[j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d%d", &r, &c);
| ~~~~~^~~~~~~~~~~~~~~~