bank.cpp:10:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
bank.cpp: In function 'int main()':
bank.cpp:16:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
int y; scanf("%d", y);
^
bank.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
bank.cpp:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~
bank.cpp:16:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int y; scanf("%d", y);
~~~~~^~~~~~~~~
bank.cpp:16:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
int y; scanf("%d", y);
~~~~~^~~~~~~~~