fountain.cpp: In function 'int main()':
fountain.cpp:61:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
61 | printf( "%d\n", queries[i].rasp);
| ~^ ~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
fountain.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf( "%lld%lld", &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( "%lld%lld", &reservoirs[i].diameter, &reservoirs[i].capacity);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf( "%lld%lld", &queries[i].level, &queries[i].volume);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~