baloni.cpp:4:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^
baloni.cpp: In function 'int main()':
baloni.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
baloni.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d", &h);
| ~~~~~^~~~~~~~~~