bank.cpp:32:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
bank.cpp: In function 'int main()':
bank.cpp:45:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i = 1; i <= n; i++)
^~~
bank.cpp:52:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
puts("YES");
^~~~
bank.cpp:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d" , &n , &m);
~~~~~^~~~~~~~~~~~~~~~~~
bank.cpp:37:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &a[i]);
~~~~~^~~~~~~~~~~~~~
bank.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &b[i]);
~~~~~^~~~~~~~~~~~~~