bank.cpp: In function 'void dfs(long long int, long long int, long long int, long long int, long long int)':
bank.cpp:37:46: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if( sum < b[i] || ( state >> i ) & 1 == 1 )continue;
~~^~~~
bank.cpp:34:10: warning: unused variable 'mx' [-Wunused-variable]
bool mx = 0;
^~
bank.cpp: At global scope:
bank.cpp:42:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
bank.cpp: In function 'int main()':
bank.cpp:46:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf( "%I64d%I64d", &n, &m );
~~ ^
bank.cpp:46:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
bank.cpp:48:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf( "%I64d", &a[i] );
~~~~~ ^
bank.cpp:50:59: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for( int i = 1; i <= m; i ++ ){ scanf( "%i64d", &b[i] ); }
~~~~~ ^
bank.cpp:46:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%I64d%I64d", &n, &m );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bank.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%I64d", &a[i] );
~~~~~^~~~~~~~~~~~~~~~~~
bank.cpp:50:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for( int i = 1; i <= m; i ++ ){ scanf( "%i64d", &b[i] ); }
~~~~~^~~~~~~~~~~~~~~~~~