bank.cpp: In function 'bool sub1(int, int)':
bank.cpp:17:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if (ret > -1) return ret; ret = 0;
| ^~
bank.cpp:17:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
17 | if (ret > -1) return ret; ret = 0;
| ^~~
bank.cpp: In function 'int32_t main()':
bank.cpp:47:48: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
47 | for (int i = 1; i <= m; ++i) if ((t >> i - 1) & 1) val += b[i];
| ~~^~~
bank.cpp:27:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | freopen("duck.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bank.cpp:28:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | freopen("duck.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~