QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#146952 | #3899. BSUIR Open X | HuangHanSheng | Compile Error | / | / | C++11 | 1.3kb | 2023-08-22 17:38:57 | 2023-08-22 17:38:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:21:17: error: ‘unordered_map’ was not declared in this scope 21 | unordered_map<string,int> m; | ^~~~~~~~~~~~~ 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> m; | ^ answer.code:21:38: error: expected primary-expression before ‘int’ 21 | unordered_map<string,int> m; | ^~~ answer.code:22:17: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 22 | m.insert({"B",0}); | ^ | tm answer.code:40:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | int n;scanf("%d",&n); | ~~~~~^~~~~~~~~