bank.cpp:28:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main () {
^
bank.cpp: In function 'int main()':
bank.cpp:29:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &n, &m);
~~~~~~^~~~~~~~~~~~~~~~~
bank.cpp:31:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", a + i);
~~~~~~^~~~~~~~~~~~~
bank.cpp:34:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", b + i);
~~~~~~^~~~~~~~~~~~~