answer.code: In function ‘void solve()’:
answer.code:26:24: error: ‘bitset’ was not declared in this scope
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~~~~~
answer.code:16:1: note: ‘std::bitset’ is defined in header ‘<bitset>’; did you forget to ‘#include <bitset>’?
15 | #include <chrono>
+++ |+#include <bitset>
16 |
answer.code:26:35: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~
answer.code:26:35: error: template argument 2 is invalid
answer.code:26:17: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~~~~~~~~~~~~~~~~~~~
answer.code:26:17: error: template argument 2 is invalid
answer.code:26:37: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~
answer.code:26:37: error: template argument 2 is invalid
answer.code:26:72: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~~~
answer.code:26:72: error: template argument 2 is invalid
answer.code:26:76: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~
answer.code:26:76: error: template argument 2 is invalid
answer.code:26:102: error: template argument 1 is invalid
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^~~~
answer.code:26:102: error: template argument 2 is invalid
answer.code:26:117: error: expression list treated as compound expression in initializer [-fpermissive]
26 | vector<vector<vector<bitset<2500>>>> dp(n + 1, (vector<vector<bitset<2500>>> (n + 1, vector<bitset<2500>>(n + 1))));
| ^
answer.code:32:7: error: invalid types ‘int[int]’ for array subscript
32 | dp[0][0][i] = 1;
| ^
answer.code:42:13: error: invalid types ‘int[int]’ for array subscript
42 | dp[i][nn][nc] |= dp[i - 1][nn][nc + 1];
| ^
answer.code:42:30: error: invalid types ‘int[int]’ for array subscript
42 | dp[i][nn][nc] |= dp[i - 1][nn][nc + 1];
| ^
answer.code:51:13: error: invalid types ‘int[int]’ for array subscript
51 | dp[i][nn + 1][nc] |= dp[i - 1][nn][nc];
| ^
answer.code:51:34: error: invalid types ‘int[int]’ for array subscript
51 | dp[i][nn + 1][nc] |= dp[i - 1][nn][nc];
| ^
answer.code:59:13: error: invalid types ‘int[int]’ for array subscript
59 | dp[i][nn][nc] |= dp[i - 1][nn][nc] << (nn * nc);
| ^
answer.code:59:30: error: invalid types ‘int[int]’ for array subscript
59 | dp[i][nn][nc] |= dp[i - 1][nn][nc] << (nn * nc);
| ^
answer.code:67:13: error: invalid types ‘int[int]’ for array subscript
67 | dp[i][nn][nc] |= dp[i - 1][nn][nc];
| ^
answer.code:67:30: error: invalid types ‘int[int]’ for array subscript
67 | dp[i][nn][nc] |= dp[i - 1][nn][nc];
| ^
answer.code:75:11: error: invalid types ‘int[int]’ for array subscript
75 | if (dp[n][nn][0].test(k)) {
| ^
answer.code:81:56: error: invalid types ‘int[int]’ for array subscript
81 | if (s[i] == 'N' || (s[i] == '?' && nn > 0 && dp[i - 1][nn - 1][nc].test(k))) {
| ^
answer.code:84:68: error: invalid types ‘int[int]’ for array subscript
84 | } else if (s[i] == 'C' || (s[i] == '?' && nc + 1 <= n && dp[i - 1][nn][nc + 1].test(k))) {
| ^
answer.code:87:69: error: invalid types ‘int[int]’ for array subscript
87 | } else if (s[i] == 'A' || (s[i] == '?' && nn * nc <= k && dp[i - 1][nn][nc].test(k - nn * nc))) {
| ^