fountain.cpp: In function 'int main()':
fountain.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
fountain.cpp:15:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d%d", &diam, &cap[0][i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:29:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~