QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#788905 | #9619. 乘积,欧拉函数,求和 | GuanYunchang | Compile Error | / | / | C++17 | 2.8kb | 2024-11-27 18:42:57 | 2024-11-27 18:42:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:41:20: error: ‘vector’ was not declared in this scope 41 | unordered_map<int, vector<int> > pr, g; | ^~~~~~ answer.code:6:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 5 | #include <unordered_map> +++ |+#include <vector> 6 | answer.code:41:30: error: template argument 2 is invalid 41 | unordered_map<int, vector<int> > pr, g; | ^ answer.code:41:30: error: template argument 5 is invalid answer.code:41:32: error: expected unqualified-id before ‘>’ token 41 | unordered_map<int, vector<int> > pr, g; | ^ answer.code: In function ‘int main()’: answer.code:58:30: error: ‘pr’ was not declared in this scope; did you mean ‘p2’? 58 | if (i <= 53) pr[tmp].push_back(i); | ^~ | p2 answer.code:62:26: error: ‘pr’ was not declared in this scope; did you mean ‘p2’? 62 | if (x <= 53) pr[tmp].push_back(x); | ^~ | p2 answer.code:65:23: error: ‘g’ was not declared in this scope 65 | if (mp <= 53) g[0].push_back(tmp); | ^ answer.code:66:14: error: ‘g’ was not declared in this scope 66 | else g[mp].push_back(tmp); | ^ answer.code:69:23: error: ‘g’ was not declared in this scope 69 | for (auto group : g) { | ^ answer.code:71:9: error: ‘vector’ was not declared in this scope 71 | vector<int> a = group.second; | ^~~~~~ answer.code:71:9: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? answer.code:71:16: error: expected primary-expression before ‘int’ 71 | vector<int> a = group.second; | ^~~ answer.code:74:23: error: ‘a’ was not declared in this scope 74 | for (auto u : a) { | ^ answer.code:76:27: error: ‘pr’ was not declared in this scope; did you mean ‘p2’? 76 | for (auto v : pr[u]) cur |= 1 << id[v]; | ^~ | p2