QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#752503 | #7895. Graph Partitioning 2 | ucup-team3932 | Compile Error | / | / | C++20 | 1.4kb | 2024-11-16 06:18:19 | 2024-11-16 06:18:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:6:24: error: ‘__gnu__pbds’ does not name a type 6 | using SparseKnapsack = __gnu__pbds::gp_hash_table<int, int>; | ^~~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:23:12: error: ‘SparseKnapsack’ was not declared in this scope 23 | vector<SparseKnapsack> dp(N); | ^~~~~~~~~~~~~~ answer.code:23:26: error: template argument 1 is invalid 23 | vector<SparseKnapsack> dp(N); | ^ answer.code:23:26: error: template argument 2 is invalid answer.code: In lambda function: answer.code:28:11: error: invalid types ‘int[int]’ for array subscript 28 | dp[u][1] = 1; | ^ answer.code:32:49: error: invalid types ‘int[int]’ for array subscript 32 | for (const auto& [i, val_i] : dp[u]) { | ^ answer.code:33:53: error: invalid types ‘int[const int]’ for array subscript 33 | for (const auto& [j, val_j] : dp[v]) { | ^ answer.code:35:29: error: ‘result’ was not declared in this scope 35 | result[i + j] = ((i64)val_i * val_j + result[i + j]) % MOD; | ^~~~~~ answer.code:39:19: error: invalid types ‘int[int]’ for array subscript 39 | dp[u].swap(result); | ^ answer.code:39:28: error: ‘result’ was not declared in this scope 39 | dp[u].swap(result); | ^~~~~~ answer.code:43:12: error: invalid types ‘int[int]’ for array subscript 43 | (dp[u][0] += dp[u][K] + dp[u][K + 1]) %= MOD; | ^ answer.code:43:24: error: invalid types ‘int[int]’ for array subscript 43 | (dp[u][0] += dp[u][K] + dp[u][K + 1]) %= MOD; | ^ answer.code:43:35: error: invalid types ‘int[int]’ for array subscript 43 | (dp[u][0] += dp[u][K] + dp[u][K + 1]) %= MOD; | ^ answer.code: In function ‘void solve()’: answer.code:46:15: error: invalid types ‘int[int]’ for array subscript 46 | cout << dp[0][0] << "\n"; | ^