fountain.cpp: In function 'int main()':
fountain.cpp:23:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
23 | scanf( "%d%d", &reservoirs[i].diameters, &reservoirs[i].v );
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int* long long int*
| %lld
fountain.cpp:23:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
23 | scanf( "%d%d", &reservoirs[i].diameters, &reservoirs[i].v );
| ~^ ~~~~~~~~~~~~~~~~
| | |
| int* long long int*
| %lld
fountain.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf( "%d%d", &height, &queries_number);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:23:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | scanf( "%d%d", &reservoirs[i].diameters, &reservoirs[i].v );
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf( "%d%d", &q[i].level, &q[i].v );
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~