QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#146952#3899. BSUIR Open XHuangHanShengCompile Error//C++111.3kb2023-08-22 17:38:572023-08-22 17:38:58

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);
      |                       ~~~~~^~~~~~~~~