QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#146949 | #3899. BSUIR Open X | GuanYunchang | Compile Error | / | / | C++11 | 1.3kb | 2023-08-22 17:36:48 | 2023-08-22 17:36:50 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:21:17: error: ‘unordered_map’ was not declared in this scope 21 | unordered_map<string,int> map; | ^~~~~~~~~~~~~ answer.code:5:8: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’? 4 | #include <map> +++ |+#include <unordered_map> 5 | using namespace std; answer.code:21:37: error: expected primary-expression before ‘,’ token 21 | unordered_map<string,int> map; | ^ answer.code:21:38: error: expected primary-expression before ‘int’ 21 | unordered_map<string,int> map; | ^~~ answer.code:22:20: error: missing template arguments before ‘.’ token 22 | map.insert({"B",0}); | ^ answer.code:23:20: error: missing template arguments before ‘.’ token 23 | map.insert({"BS",0}); | ^ answer.code:24:20: error: missing template arguments before ‘.’ token 24 | map.insert({"BSU",0}); | ^ answer.code:25:20: error: missing template arguments before ‘.’ token 25 | map.insert({"BSUI",0}); | ^ answer.code:26:20: error: missing template arguments before ‘.’ token 26 | map.insert({"BSUIR",0}); | ^ answer.code:27:20: error: missing template arguments before ‘.’ token 27 | map.insert({"BSUIRO",0}); | ^ answer.code:28:20: error: missing template arguments before ‘.’ token 28 | map.insert({"BSUIROP",0}); | ^ answer.code:29:20: error: missing template arguments before ‘.’ token 29 | map.insert({"BSUIROPE",0}); | ^ answer.code:30:20: error: missing template arguments before ‘.’ token 30 | map.insert({"BSUIROPEN",0}); | ^ answer.code:31:20: error: missing template arguments before ‘.’ token 31 | map.insert({"X",0}); | ^ answer.code:32:20: error: missing template arguments before ‘.’ token 32 | map.insert({"NX",0}); | ^ answer.code:33:20: error: missing template arguments before ‘.’ token 33 | map.insert({"ENX",0}); | ^ answer.code:34:20: error: missing template arguments before ‘.’ token 34 | map.insert({"PENX",0}); | ^ answer.code:35:20: error: missing template arguments before ‘.’ token 35 | map.insert({"OPENX",0}); | ^ answer.code:36:20: error: missing template arguments before ‘.’ token 36 | map.insert({"ROPENX",0}); | ^ answer.code:37:20: error: missing template arguments before ‘.’ token 37 | map.insert({"IROPENX",0}); | ^ answer.code:38:20: error: missing template arguments before ‘.’ token 38 | map.insert({"UIROPENX",0}); | ^ answer.code:39:20: error: missing template arguments before ‘.’ token 39 | map.insert({"SUIROPENX",0}); | ^ answer.code:45:31: error: missing template arguments before ‘.’ token 45 | if(map.find(s) != map.end()) | ^ answer.code:45:46: error: missing template arguments before ‘.’ token 45 | if(map.find(s) != map.end()) | ^ answer.code:47:36: error: missing template arguments before ‘[’ token 47 | map[s] ++; | ^ answer.code:52:27: error: missing template arguments before ‘[’ token 52 | ans += map["B"] * map["SUIROPENX"]; | ^ answer.code:52:38: error: missing template arguments before ‘[’ token 52 | ans += map["B"] * map["SUIROPENX"]; | ^ answer.code:53:27: error: missing template arguments before ‘[’ token 53 | ans += map["BS"] * map["UIROPENX"]; | ^ answer.code:53:39: error: missing template arguments before ‘[’ token 53 | ans += map["BS"] * map["UIROPENX"]; | ^ answer.code:54:27: error: missing template arguments before ‘[’ token 54 | ans += map["BSU"] * map["IROPENX"]; | ^ answer.code:54:40: error: missing template arguments before ‘[’ token 54 | ans += map["BSU"] * map["IROPENX"]; | ^ ...