bank.cpp: In function 'int f(int, int, int)':
bank.cpp:44:21: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(!((1 << i-1) & mask) && res - a[i] >= 0) {
~^~
bank.cpp:46:49: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
r = max(r, f(w+1, mask | (1 << i-1), b[w+1]));
~^~
bank.cpp:48:47: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
r = max(r, f(w, mask | (1 << i-1), res-a[i]));
~^~
bank.cpp: In function 'int main()':
bank.cpp:55:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &m, &n);
~~~~~^~~~~~~~~~~~~~~~~
bank.cpp:58:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
~~~~~^~~~~~~~~~~~~
bank.cpp:61:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~