bank.cpp:2:21: error: 'Q' does not name a type
2 | using namespace std;Q
| ^
bank.cpp:8:13: error: 'MAX' was not declared in this scope; did you mean 'MAXM'?
8 | int n, m, a[MAX], b[MAX];
| ^~~
| MAXM
bank.cpp:8:21: error: 'MAX' was not declared in this scope; did you mean 'MAXM'?
8 | int n, m, a[MAX], b[MAX];
| ^~~
| MAXM
bank.cpp:9:8: error: 'MAX' was not declared in this scope; did you mean 'MAXM'?
9 | int dp[MAX][1 << MAX];
| ^~~
| MAXM
bank.cpp:9:18: error: 'MAX' was not declared in this scope; did you mean 'MAXM'?
9 | int dp[MAX][1 << MAX];
| ^~~
| MAXM
bank.cpp: In function 'int solve(int, int)':
bank.cpp:13:8: error: 'dp' was not declared in this scope
13 | if(dp[i][mask] != -1) return dp[i][mask];
| ^~
bank.cpp:16:16: error: 'a' was not declared in this scope
16 | int targ = a[i], resp = 0;
| ^
bank.cpp:20:38: error: 'resp' was not declared in this scope
20 | if(solve(i + 1, mask | sub)) resp = 1;
| ^~~~
bank.cpp:23:12: error: 'dp' was not declared in this scope
23 | return dp[i][mask] = resp;
| ^~
bank.cpp:23:26: error: 'resp' was not declared in this scope
23 | return dp[i][mask] = resp;
| ^~~~
bank.cpp: In function 'int main()':
bank.cpp:32:40: error: 'a' was not declared in this scope
32 | for(int i = 1; i <= n; i++) cin >> a[i];
| ^
bank.cpp:33:39: error: 'b' was not declared in this scope
33 | for(int i = 0; i < m; i++) cin >> b[i];
| ^
bank.cpp:39:40: error: 'b' was not declared in this scope
39 | if(mask & (1 << i)) cur += b[i];
| ^
bank.cpp:44:12: error: 'dp' was not declared in this scope
44 | memset(dp, -1, sizeof(dp));
| ^~